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 (from parent 1:
44024da
)
addsite: Give webmasters write access to the data dir.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Sun, 29 Mar 2009 19:36:45 +0000
(21:36 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Sun, 29 Mar 2009 19:36:45 +0000
(21:36 +0200)
usr/local/bin/addsite
patch
|
blob
|
history
diff --git
a/usr/local/bin/addsite
b/usr/local/bin/addsite
index 815ecfc1719ed81be24824c2e3dc19665491b62e..73eb5d39854ed366a6665c16a2b2002f47a4ac7c 100755
(executable)
--- a/
usr/local/bin/addsite
+++ b/
usr/local/bin/addsite
@@
-93,8
+93,8
@@
sudo chown -R 0:$GROUP "$DIR"
# By default, let the owner have write access, the group have read access
sudo setfacl -R --set d:u::rwX,d:g::rX,d:o::-,u::rwX,g::rX,o::- "$DIR"
# By default, let the owner have write access, the group have read access
sudo setfacl -R --set d:u::rwX,d:g::rX,d:o::-,u::rwX,g::rX,o::- "$DIR"
-# Give the group write access to htdocs, applications
and conf
-sudo setfacl -R -m g::rwX "$DIR/htdocs" "$DIR/applications" "$DIR/conf"
+# Give the group write access to htdocs, applications
, conf and data
+sudo setfacl -R -m g::rwX "$DIR/htdocs" "$DIR/applications" "$DIR/conf"
"$DIR/data"
# 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"