Lighttpd: Fix for stricter permissions for logfiles
This commit is contained in:
parent
424c721854
commit
d36e1d1b2c
|
@ -191,6 +191,10 @@ case "$1" in
|
|||
|
||||
#Start here the lighttpd i.e.
|
||||
log_daemon_msg "Starting lighttpd..."
|
||||
touch "$PIRATEBOX_FOLDER/tmp/break.log" \
|
||||
"$PIRATEBOX_FOLDER/tmp/error.log"
|
||||
chown $LIGHTTPD_USER:$LIGHTTPD_GROUP "$PIRATEBOX_FOLDER/tmp/break.log" \
|
||||
"$PIRATEBOX_FOLDER/tmp/error.log"
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE_LIGHTTPD --exec /usr/sbin/lighttpd -- -f $CONF_LIGHTTPD
|
||||
log_end_msg $?
|
||||
|
||||
|
|
|
@ -185,6 +185,10 @@ case "$1" in
|
|||
|
||||
#Start here the lighttpd i.e.
|
||||
echo "Starting lighttpd..."
|
||||
touch "$PIRATEBOX_FOLDER/tmp/break.log" \
|
||||
"$PIRATEBOX_FOLDER/tmp/error.log"
|
||||
chown $LIGHTTPD_USER:$LIGHTTPD_GROUP "$PIRATEBOX_FOLDER/tmp/break.log" \
|
||||
"$PIRATEBOX_FOLDER/tmp/error.log"
|
||||
start-stop-daemon -S -q -p $PIDFILE_LIGHTTPD -x /usr/sbin/lighttpd -- -f $CONF_LIGHTTPD
|
||||
echo $?
|
||||
|
||||
|
|
Loading…
Reference in New Issue