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:
1401bf6
)
addsite: Give www-data read access to conf/ dirs.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 17 Dec 2008 18:58:27 +0000
(19:58 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 17 Dec 2008 18:58:27 +0000
(19:58 +0100)
usr/local/bin/addsite
patch
|
blob
|
history
diff --git
a/usr/local/bin/addsite
b/usr/local/bin/addsite
index d2f515e7d64b1fb6b71d1ccef8b89d0d21a22e41..c7212ab63b89c44d8a000515af9ed5537485f4ed 100755
(executable)
--- a/
usr/local/bin/addsite
+++ b/
usr/local/bin/addsite
@@
-98,8
+98,8
@@
sudo setfacl -R -m g::rwX "$DIR/htdocs" "$DIR/conf"
# Give lighttpd read access to the dir itself
sudo setfacl -m u:$HTTPD_USER:rx "$DIR"
# Give lighttpd read access to the dir itself
sudo setfacl -m u:$HTTPD_USER:rx "$DIR"
-# Allow lighttpd to read anything in htdocs
-sudo setfacl -R -m d:u:$HTTPD_USER:rX,u:$HTTPD_USER:rX "$DIR/htdocs"
+# Allow lighttpd to read anything in htdocs
and conf
+sudo setfacl -R -m d:u:$HTTPD_USER:rX,u:$HTTPD_USER:rX "$DIR/htdocs"
"$DIR/conf"
# Allow lighttpd to write new files in logs (but not touch existing or those created by lighttpd)
sudo setfacl -m u:$HTTPD_USER:rwX "$DIR/logs"
# Allow lighttpd to write new files in logs (but not touch existing or those created by lighttpd)
sudo setfacl -m u:$HTTPD_USER:rwX "$DIR/logs"