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

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Thu Jan 28 00:17:07 UTC 2010


Author: biebl
Date: Thu Jan 28 00:17:06 2010
New Revision: 3478

URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=3478
Log:
Check if directory exists, before running chmod

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=3478&op=diff
==============================================================================
--- packages/unstable/hal/debian/hal.postinst (original)
+++ packages/unstable/hal/debian/hal.postinst Thu Jan 28 00:17:06 2010
@@ -58,7 +58,7 @@
       rmdir --ignore-fail-on-non-empty /var/run/hal
       # Make /var/run/hald world readable and ensure this also happens on
       # upgrades so users can run "service hal status". See #562915
-      chmod 755 /var/run/hald
+      [ -d /var/run/hald ] && chmod 755 /var/run/hald
     fi
 
     if [ -x /etc/init.d/dbus ]; then




More information about the Pkg-utopia-commits mailing list