summaryrefslogtreecommitdiff
path: root/debian/dbus.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/dbus.postinst')
-rw-r--r--debian/dbus.postinst5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/dbus.postinst b/debian/dbus.postinst
index e4c5cf5a..27f77c22 100644
--- a/debian/dbus.postinst
+++ b/debian/dbus.postinst
@@ -31,9 +31,10 @@ if [ "$1" = configure ]; then
--disabled-password \
--group "$MESSAGEUSER"
+ # The preinst might have done this already, or a sysadmin might have
+ # set up their own dpkg-statoverride. Keep this in sync with the preinst.
if ! dpkg-statoverride --list "$LAUNCHER" >/dev/null 2>&1; then
- chown root:"$MESSAGEUSER" "$LAUNCHER"
- chmod 4754 "$LAUNCHER"
+ dpkg-statoverride --update --add root "$MESSAGEUSER" 4754 "$LAUNCHER"
fi
# This is idempotent, so it's OK to do every time. The system bus' init