X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=usr%2Flocal%2Fbin%2Faddsite;h=73eb5d39854ed366a6665c16a2b2002f47a4ac7c;hb=8979fa02c5c4aae7373344d4f5c41eb0b8564932;hp=815ecfc1719ed81be24824c2e3dc19665491b62e;hpb=44024da1dfb8e72d59dce0e25313898848fba0a7;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/usr/local/bin/addsite b/usr/local/bin/addsite index 815ecfc..73eb5d3 100755 --- 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" -# 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"