Lighttpd: Fix for stricter permissions for logfiles

This commit is contained in:
Matthias Strubel 2017-07-01 18:44:45 +02:00
parent 424c721854
commit d36e1d1b2c
2 changed files with 8 additions and 0 deletions

View File

@ -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 $?

View File

@ -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 $?