[arch-commits] Commit in dbus-core/trunk (dbus.install)
Jan de Groot
jgc at archlinux.org
Sat Oct 31 11:03:00 UTC 2009
Date: Saturday, October 31, 2009 @ 07:03:00
Author: jgc
Revision: 57041
Change pre_remove to post_remove, check for user accounts (FS#14810)
Modified:
dbus-core/trunk/dbus.install
--------------+
dbus.install | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Modified: dbus.install
===================================================================
--- dbus.install 2009-10-31 10:58:17 UTC (rev 57040)
+++ dbus.install 2009-10-31 11:03:00 UTC (rev 57041)
@@ -14,7 +14,11 @@
fi
}
-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
}
More information about the arch-commits
mailing list