r43748 - /scripts/KGB/debian/init

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Sat Sep 5 19:37:27 UTC 2009


Author: dmn
Date: Sat Sep  5 19:37:23 2009
New Revision: 43748

URL: http://svn.debian.org/wsvn/?sc=1&rev=43748
Log:
abandon using dpkg-statoverride (badly) when initializing /var/run/kgb

it is very unlikely that something else than kgb-bot:root 0775 will be needed
and even if it is, the init script is a conffile

the current code was chowning to root:kgb-bot, which failed

Modified:
    scripts/KGB/debian/init

Modified: scripts/KGB/debian/init
URL: http://svn.debian.org/wsvn/scripts/KGB/debian/init?rev=43748&op=diff
==============================================================================
--- scripts/KGB/debian/init (original)
+++ scripts/KGB/debian/init Sat Sep  5 19:37:23 2009
@@ -45,11 +45,8 @@
     RUN_DIR="/var/run/$NAME"
     [ -d "$RUN_DIR" ] || mkdir "$RUN_DIR" || return 1
 
-    # allow local administrator overrides
-    if ! dpkg-statoverride --list "$RUN_DIR" > /dev/null; then
-        dpkg-statoverride --update --add root "$RUN_AS" 0775 "$RUN_DIR" \
-            || return 1
-    fi
+    chown "$RUN_AS":root "$RUN_DIR"
+    chmod 0775 "$RUN_DIR"
 
     return 0
 }




More information about the Pkg-perl-cvs-commits mailing list