blob: 4588ef08eb729f930d139c2a8a6e824d94e6f718 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
set -e
MESSAGEUSER=messagebus
LAUNCHER=/usr/lib/dbus-1.0/dbus-daemon-launch-helper
# Avoid having the new $LAUNCHER temporarily go back to
# its permissions and ownership from the .deb (0755 root:root).
# We do this opportunistically - only if $MESSAGEUSER already exists
# (i.e. dbus is installed or has been installed in the past) - to avoid having
# to pre-depend on adduser, and we don't do it if the postinst or
# the sysadmin has already set up a dpkg-statoverride.
# Keep this in sync with the postinst.
if getent group "$MESSAGEUSER" >/dev/null && \
! dpkg-statoverride --list "$LAUNCHER" >/dev/null 2>&1; then
dpkg-statoverride --update --add root "$MESSAGEUSER" 4754 "$LAUNCHER"
fi
#DEBHELPER#
|