[arch-commits] Commit in bitlbee/trunk (bitlbee.install)

Andrea Scarpino andrea at archlinux.org
Tue May 4 19:15:05 UTC 2010


    Date: Tuesday, May 4, 2010 @ 15:15:04
  Author: andrea
Revision: 79608

remove user and group with the right way (FS#19269)

Modified:
  bitlbee/trunk/bitlbee.install

-----------------+
 bitlbee.install |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

Modified: bitlbee.install
===================================================================
--- bitlbee.install	2010-05-04 19:02:20 UTC (rev 79607)
+++ bitlbee.install	2010-05-04 19:15:04 UTC (rev 79608)
@@ -12,9 +12,7 @@
   post_install $1
 }
 
-pre_remove() {
-  userdel bitlbee &> /dev/null
-  groupdel bitlbee &> /dev/null
+post_remove() {
+  getent passwd bitlbee >/dev/null 2>&1 && userdel bitlbee
+  getent group bitlbee >/dev/null 2>&1 && groupdel bitlbee
 }
-
-# vim: ts=2 sw=2 et ft=sh




More information about the arch-commits mailing list