Lighttpd: Fix for stricter permissions for logfiles

This commit is contained in:
Matthias Strubel committed 2017-07-01 18:44:45 +02:00
1 parent 424c721854
commit d36e1d1b2c
2 files changed
+8

No files matched your search

+4
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 $?
+4
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 $?