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 | |
parent | 58711d2b322549b9661e39c985693b43218752dc (diff) | |
download | dbus-6df62c5e305f9c0abffecad099dcf59d00389cf1.tar.gz |
create, chown messagebus' home directory in postinst
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | debian/dbus.postinst | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index d68ae232..f53fcc50 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ dbus (1.5.2-2) UNRELEASED; urgency=low * Merge from unstable + * Merge and adapt from Ubuntu: + - create, chown messagebus' home directory in postinst -- Simon McVittie <smcv@debian.org> Thu, 02 Jun 2011 17:37:24 +0100 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" |