[Pkg-utopia-commits] r1472 - in /packages/unstable/hal/debian:
changelog hal.postrm
biebl at users.alioth.debian.org
biebl at users.alioth.debian.org
Mon May 7 15:44:14 UTC 2007
Author: biebl
Date: Mon May 7 15:44:14 2007
New Revision: 1472
URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=1472
Log:
Check for deluser being available. If not, print warning message and do
not remove the haldaemon system user. (Closes: #416760)
http://wiki.debian.org/AccountHandlingInMaintainerScripts
discusses this topic.
For hal it's imo safe to remove the system account as we don't create any log files or the like.
Modified:
packages/unstable/hal/debian/changelog
packages/unstable/hal/debian/hal.postrm
Modified: packages/unstable/hal/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/changelog?rev=1472&op=diff
==============================================================================
--- packages/unstable/hal/debian/changelog (original)
+++ packages/unstable/hal/debian/changelog Mon May 7 15:44:14 2007
@@ -28,6 +28,8 @@
+ Reload dbus only on purge, i.e. when the conffile
/etc/dbus-1/system.d/hal.conf is removed.
+ Remove the fdi-cache file on purge.
+ + Check for deluser being available. If not, print warning message and do
+ not remove the haldaemon system user. (Closes: #416760)
* debian/hal.{preinst,postinst}
+ Remove some old upgrade paths for the hal init script.
Modified: packages/unstable/hal/debian/hal.postrm
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/hal.postrm?rev=1472&op=diff
==============================================================================
--- packages/unstable/hal/debian/hal.postrm (original)
+++ packages/unstable/hal/debian/hal.postrm Mon May 7 15:44:14 2007
@@ -11,7 +11,12 @@
invoke-rc.d dbus force-reload || true
fi
- deluser --quiet --system haldaemon > /dev/null || true
+ if [ -x "$(command -v deluser)" ]; then
+ deluser --quiet --system haldaemon > /dev/null || true
+ else
+ echo >&2 "Not removing haldaemon system account because deluser command was not found"
+ fi
+
rmdir /var/run/hal || true
rm -f /var/cache/hald/fdi-cache
More information about the Pkg-utopia-commits
mailing list