From: Matthijs Kooijman Date: Sun, 13 Feb 2011 11:26:28 +0000 (+0100) Subject: addsite: Make per-subdomain logs readable. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=7a8ba9085abb6be6d020a3ae0d923f26286567ef;p=matthijs%2Fservers%2Fdrsnuggles.git addsite: Make per-subdomain logs readable. --- diff --git a/usr/local/bin/addsite b/usr/local/bin/addsite index 7d31807..724bdd0 100755 --- a/usr/local/bin/addsite +++ b/usr/local/bin/addsite @@ -124,7 +124,7 @@ sudo setfacl -m u:$SCRIPT_USER:rwX "$DIR/logs" "$DIR/data" # Temp, chown existing log files sudo sh -c "chown -R $SCRIPT_USER \"$DIR\"/logs/php.log* \"$DIR\"/logs/wipi.log*" -sudo sh -c "chown -R $HTTPD_USER \"$DIR\"/logs/access.log*" +sudo sh -c "chown -R $HTTPD_USER \"$DIR\"/logs/access.log* \"$DIR\"/logs/*/access.log*" # Now, set the error_log setting in php.ini. This ensures each domein will have # a separate logfile for errors, since lighttpd only supports a single error