summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/dbus-core/dbus.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2010-09-04 22:52:28 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2010-09-04 22:52:28 (GMT)
commitdffb263abe3f68dd4dcad62b592180f1e6a4f195 (patch)
tree8e9d96cf70eda06474ce540d7e9e83d2dd91a37d /abs/core-testing/dbus-core/dbus.install
parent63a6cf4a31d6f270d1c9025e15bdd749bc7e33e3 (diff)
downloadlinhes_pkgbuild-dffb263abe3f68dd4dcad62b592180f1e6a4f195.zip
linhes_pkgbuild-dffb263abe3f68dd4dcad62b592180f1e6a4f195.tar.gz
linhes_pkgbuild-dffb263abe3f68dd4dcad62b592180f1e6a4f195.tar.bz2
dbus-core:Bumped/Updated for LinHES 7.
Diffstat (limited to 'abs/core-testing/dbus-core/dbus.install')
-rw-r--r--abs/core-testing/dbus-core/dbus.install19
1 files changed, 11 insertions, 8 deletions
diff --git a/abs/core-testing/dbus-core/dbus.install b/abs/core-testing/dbus-core/dbus.install
index 85dd9a7..44f4475 100644
--- a/abs/core-testing/dbus-core/dbus.install
+++ b/abs/core-testing/dbus-core/dbus.install
@@ -5,17 +5,20 @@ post_install() {
dbus-uuidgen --ensure
}
-# arg 1: the new package version
-# arg 2: the old package version
post_upgrade() {
- post_install $1
+ post_install
#Make sure new rc script can shutdown running dbus
- [ -f var/run/dbus/pid ] && mv var/run/dbus/pid var/run/dbus.pid
+ if [ -f var/run/dbus/pid ]; then
+ mv var/run/dbus/pid var/run/dbus.pid
+ fi
}
-# arg 1: the old package version
-pre_remove() {
- usr/sbin/userdel dbus &>/dev/null
- usr/sbin/groupdel dbus &>/dev/null
+post_remove() {
+ if getent passwd dbus >/dev/null; then
+ usr/sbin/userdel dbus
+ fi
+ if getent group dbus >/dev/null; then
+ usr/sbin/groupdel dbus
+ fi
}