[Pkg-utopia-commits] r3474 - /packages/unstable/hal/debian/hal.postinst

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Thu Jan 28 00:16:39 UTC 2010


Author: biebl
Date: Thu Jan 28 00:16:37 2010
New Revision: 3474

URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=3474
Log:
Cleanup /var/run/hal and /var/lib/hal on upgrades.

Modified:
    packages/unstable/hal/debian/hal.postinst

Modified: packages/unstable/hal/debian/hal.postinst
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/hal.postinst?rev=3474&op=diff
==============================================================================
--- packages/unstable/hal/debian/hal.postinst (original)
+++ packages/unstable/hal/debian/hal.postinst Thu Jan 28 00:16:37 2010
@@ -50,6 +50,12 @@
       # Kill any running hald daemon as the pid file might be missing or
       # outdated causing failures when upgrading from lenny. See #561505
       start-stop-daemon --stop --oknodo --quiet --exec /usr/sbin/hald
+      # Cleanup old acl management files on upgrades and remove obsolete
+      # directories which are no longer used by hal
+      rm -f /var/lib/hal/acl-list
+      rmdir --ignore-fail-on-non-empty /var/lib/hal
+      rm -f /var/run/hal/acl-list
+      rmdir --ignore-fail-on-non-empty /var/run/hal
     fi
 
     if [ -x /etc/init.d/dbus ]; then




More information about the Pkg-utopia-commits mailing list