addsite: Give www-data read access to conf/ dirs.
[matthijs/servers/drsnuggles.git] / usr / local / bin / addsite
index d2f515e7d64b1fb6b71d1ccef8b89d0d21a22e41..c7212ab63b89c44d8a000515af9ed5537485f4ed 100755 (executable)
@@ -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"