add some more lines from iconnor tree to create and set permissions on dirs in /run and /tmp

This commit is contained in:
Isaac Connor 2013-09-12 13:58:37 -04:00
parent f4a7101d82
commit 11d0428a20
1 changed files with 3 additions and 1 deletions

4
debian/init.d vendored
View File

@ -18,11 +18,13 @@
prog=ZoneMinder
ZM_PATH_BIN="/usr/bin"
RUNDIR=/var/run/zm
TMPDIR=/tmp/zm
command="$ZM_PATH_BIN/zmpkg.pl"
start() {
echo -n "Starting $prog: "
mkdir -p $RUNDIR
mkdir -p $RUNDIR && chown www-data:www-data $RUNDIR
mkdir -p $TMPDIR && chown www-data:www-data $TMPDIR
zmfix -a
$command start
RETVAL=$?