summaryrefslogtreecommitdiff
path: root/testing/dbus-core/dbus.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-15 00:01:47 +0000
committerroot <root@rshg054.dnsready.net>2012-06-15 00:01:47 +0000
commit63a600a5f9102d817332db9fb746a4153ed62b51 (patch)
treed4219aa8c6331cc37c98b943b1f9db68306bd81d /testing/dbus-core/dbus.install
parent35c30674b2b901077a809a6f1d8e5a0115098c8b (diff)
Fri Jun 15 00:01:47 UTC 2012
Diffstat (limited to 'testing/dbus-core/dbus.install')
-rw-r--r--testing/dbus-core/dbus.install16
1 files changed, 8 insertions, 8 deletions
diff --git a/testing/dbus-core/dbus.install b/testing/dbus-core/dbus.install
index 44f4475ee..218a930e7 100644
--- a/testing/dbus-core/dbus.install
+++ b/testing/dbus-core/dbus.install
@@ -1,24 +1,24 @@
post_install() {
- getent group dbus >/dev/null || usr/sbin/groupadd -g 81 dbus
- getent passwd dbus >/dev/null || usr/sbin/useradd -c 'System message bus' -u 81 -g dbus -d '/' -s /bin/false dbus
- usr/bin/passwd -l dbus &>/dev/null
+ getent group dbus >/dev/null || groupadd -g 81 dbus
+ getent passwd dbus >/dev/null || useradd -c 'System message bus' -u 81 -g dbus -d '/' -s /bin/false dbus
+ passwd -l dbus &>/dev/null
dbus-uuidgen --ensure
}
post_upgrade() {
post_install
- #Make sure new rc script can shutdown running dbus
- if [ -f var/run/dbus/pid ]; then
- mv var/run/dbus/pid var/run/dbus.pid
+ # Make sure new rc script can shutdown running dbus
+ if [ -f run/dbus.pid -a -d run/dbus ]; then
+ mv run/dbus.pid run/dbus/pid
fi
}
post_remove() {
if getent passwd dbus >/dev/null; then
- usr/sbin/userdel dbus
+ userdel dbus
fi
if getent group dbus >/dev/null; then
- usr/sbin/groupdel dbus
+ groupdel dbus
fi
}