[SCM] flumotion/master: Create /var/run/flumotion with permissions 0755 (CLoses: #510031)

zmoelnig-guest at users.alioth.debian.org zmoelnig-guest at users.alioth.debian.org
Tue Mar 6 11:39:47 UTC 2012


The following commit has been merged in the master branch:
commit f958f7ceff7b58ec7c4f0fcbf67ff12a949ebae3
Author: IOhannes m zmölnig <zmoelnig at iem.at>
Date:   Tue Mar 6 12:38:11 2012 +0100

    Create /var/run/flumotion with permissions 0755 (CLoses: #510031)
    
    this is how it is done in other packages, e.g. nslcd...

diff --git a/debian/flumotion.init b/debian/flumotion.init
index 522d7ca..f4a4c16 100644
--- a/debian/flumotion.init
+++ b/debian/flumotion.init
@@ -11,6 +11,7 @@
 ### END INIT INFO
 
 # Author: Loic Minier <lool at dooz.org>
+#	  IOhannes m zmölnig <zmoelnig at iem.at>
 
 # Do NOT "set -e"
 
@@ -23,6 +24,8 @@ DAEMON="/usr/sbin/$NAME"
 DAEMON_ARGS="-d 3 -l $LOGFILE"
 SCRIPTNAME="/etc/init.d/$NAME"
 
+FLUMOTION_STATEDIR=/var/run/flumotion
+
 # Exit if the package is not installed
 [ -x "$DAEMON" ] || exit 0
 
@@ -117,9 +120,9 @@ do_list() {
 }
 
 # Create flumotion's home dir on startup as it might be a tmpfs
-if [ ! -d /var/run/flumotion ]; then
-	mkdir /var/run/flumotion
-	chown flumotion:flumotion /var/run/flumotion
+if [ ! -d "${FLUMOTION_STATEDIR}" ]; then
+	mkdir --mode=755 "${FLUMOTION_STATEDIR}"
+	chown flumotion:flumotion "${FLUMOTION_STATEDIR}"
 fi
 
 case "$1" in

-- 
flumotion packaging



More information about the pkg-multimedia-commits mailing list