X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=usr%2Flocal%2Fbin%2Faddsite;h=7d318071d47456bfb88fa4573de04c2a630f1916;hb=31e323bd75fb798d58b0d19f8965b23dda181477;hp=cc64350d1b6620d8c59209f8557d3be55000fc1e;hpb=aeb6a57aa9fd2c6567b85ac4b9ad1c60b7e3f563;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/usr/local/bin/addsite b/usr/local/bin/addsite index cc64350..7d31807 100755 --- a/usr/local/bin/addsite +++ b/usr/local/bin/addsite @@ -110,8 +110,8 @@ sudo setfacl -m u:$HTTPD_USER:rx "$DIR" # Allow lighttpd to read anything in htdocs, applications, conf and data sudo setfacl -R -m d:u:$HTTPD_USER:rX,u:$HTTPD_USER:rX "$DIR/htdocs" "$DIR/applications" "$DIR/conf" "$DIR/data" -# 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 +sudo setfacl -m d:u:$HTTPD_USER:rwX,u:$HTTPD_USER:rwX "$DIR/logs" # Give scripts read access to the dir itself sudo setfacl -m u:$SCRIPT_USER:rx "$DIR"