X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=usr%2Flocal%2Fbin%2Faddsite;h=c7212ab63b89c44d8a000515af9ed5537485f4ed;hb=fa0dad57ac8b38969fe2821fa0857fdc13f76e88;hp=d2f515e7d64b1fb6b71d1ccef8b89d0d21a22e41;hpb=1401bf699d9199d7fed4c68d935f1857df8f04c7;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/usr/local/bin/addsite b/usr/local/bin/addsite index d2f515e..c7212ab 100755 --- 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" -# 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"