projects
/
matthijs
/
servers
/
drsnuggles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dcc313
)
addsite: Make per-subdomain logs readable.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Sun, 13 Feb 2011 11:26:28 +0000
(12:26 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Sun, 13 Feb 2011 11:26:28 +0000
(12:26 +0100)
usr/local/bin/addsite
patch
|
blob
|
history
diff --git
a/usr/local/bin/addsite
b/usr/local/bin/addsite
index 7d318071d47456bfb88fa4573de04c2a630f1916..724bdd0a5b8fccdcfc95e2d24571ed7bddbd9931 100755
(executable)
--- 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