[Python-apps-commits] r751 - in packages/pyicqt/trunk/debian (changelog postrm)
nijel at users.alioth.debian.org
nijel at users.alioth.debian.org
Mon Mar 3 16:32:45 UTC 2008
Date: Monday, March 3, 2008 @ 16:32:44
Author: nijel
Revision: 751
* Delete pyicqt user on purge.
Modified:
packages/pyicqt/trunk/debian/changelog
packages/pyicqt/trunk/debian/postrm
Modified: packages/pyicqt/trunk/debian/changelog
===================================================================
--- packages/pyicqt/trunk/debian/changelog 2008-03-03 10:19:25 UTC (rev 750)
+++ packages/pyicqt/trunk/debian/changelog 2008-03-03 16:32:44 UTC (rev 751)
@@ -1,8 +1,9 @@
pyicqt (0.8b-2) UNRELEASED; urgency=low
* NOT RELEASED YET
+ * Delete pyicqt user on purge.
- -- Michal ÄihaÅ <nijel at debian.org> Thu, 28 Feb 2008 20:58:14 +0100
+ -- Michal ÄihaÅ <nijel at debian.org> Mon, 03 Mar 2008 17:32:27 +0100
pyicqt (0.8b-1) unstable; urgency=low
Modified: packages/pyicqt/trunk/debian/postrm
===================================================================
--- packages/pyicqt/trunk/debian/postrm 2008-03-03 10:19:25 UTC (rev 750)
+++ packages/pyicqt/trunk/debian/postrm 2008-03-03 16:32:44 UTC (rev 751)
@@ -4,16 +4,28 @@
case "$1" in
purge)
- rm -rf /var/lib/pyicqt
- rm -rf /var/log/pyicqt
- rm -rf /var/run/pyicqt
- ;;
+ rm -rf /var/lib/pyicqt
+ rm -rf /var/log/pyicqt
+ rm -rf /var/run/pyicqt
+ # delete user
+ if getent passwd pyicqt >/dev/null; then
+ if [ -x /usr/sbin/deluser ]; then
+ deluser --system pyicqt
+ fi
+ fi
+ # delete group
+ if getent group pyicqt >/dev/null; then
+ if [ -x /usr/sbin/delgroup ]; then
+ delgroup --system pyicqt
+ fi
+ fi
+ ;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
- ;;
+ ;;
*)
- echo "postrm called with unknown argument '$1'" >&2
- exit 1
- ;;
+ echo "postrm called with unknown argument '$1'" >&2
+ exit 1
+ ;;
esac
#DEBHELPER#
More information about the Python-apps-commits
mailing list