dbus: switch to OpenRC, bump revision.
--HG-- extra : convert_revision : d2099026e9bdd524aa7ae31062e7079bf937a3f2
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
#
|
||||
# This script fixes permissions for dbus-daemon-launch-helper
|
||||
# and creates the dbus system user/group.
|
||||
#
|
||||
dbus_launch="./usr/libexec/dbus-daemon-launch-helper"
|
||||
|
||||
case "${ACTION}" in
|
||||
pre)
|
||||
;;
|
||||
post)
|
||||
echo "Running ${PKGNAME}-${VERSION} post installation hooks..."
|
||||
if ! getent group dbus >/dev/null; then
|
||||
groupadd -r dbus 2>&1 >/dev/null
|
||||
[ $? -ne 0 ] && exit $?
|
||||
echo "Created dbus system group."
|
||||
fi
|
||||
if ! getent passwd dbus >/dev/null; then
|
||||
useradd -c "System message bus" \
|
||||
-d /var/run/dbus \
|
||||
-s /sbin/nologin -g dbus -r dbus && \
|
||||
passwd -l dbus 2>&1 >/dev/null
|
||||
[ $? -ne 0 ] && exit $?
|
||||
echo "Created dbus system user."
|
||||
fi
|
||||
chown root:dbus ${dbus_launch}
|
||||
chmod 4750 ${dbus_launch}
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user