diff options
author | Simon McVittie <smcv@debian.org> | 2011-06-08 12:16:19 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2011-06-08 12:16:19 +0100 |
commit | 6df62c5e305f9c0abffecad099dcf59d00389cf1 (patch) | |
tree | 97c16a0ccc5c669470805947daa3746844871995 /debian/dbus.postinst | |
parent | 58711d2b322549b9661e39c985693b43218752dc (diff) | |
download | dbus-6df62c5e305f9c0abffecad099dcf59d00389cf1.tar.gz |
create, chown messagebus' home directory in postinst
Diffstat (limited to 'debian/dbus.postinst')
-rw-r--r-- | debian/dbus.postinst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/dbus.postinst b/debian/dbus.postinst index 29fc2bc6..86150910 100644 --- a/debian/dbus.postinst +++ b/debian/dbus.postinst @@ -9,12 +9,14 @@ MESSAGEHOME=/var/run/dbus LAUNCHER=/usr/lib/dbus-1.0/dbus-daemon-launch-helper if [ "$1" = configure ]; then + test -d "$MESSAGEHOME" || mkdir -p "$MESSAGEHOME" adduser --system \ --quiet \ --home "$MESSAGEHOME" \ --no-create-home \ --disabled-password \ --group "$MESSAGEUSER" + chown "$MESSAGEUSER":"$MESSAGEUSER" "$MESSAGEHOME" if ! dpkg-statoverride --list "$LAUNCHER" >/dev/null 2>&1; then chown root:"$MESSAGEUSER" "$LAUNCHER" |