Skip to content

Commit ec4acab

Browse files
committed
Fix nginx sites file permissions
1 parent 08a7713 commit ec4acab

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

bash/ss-perms-nginx-config.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ chmod 0755 /var/www/cache/nginx ## 0755 seems enough
9090
chmod 0775 /var/www/html ## must be 0775 (0755 not enough)
9191
chmod 0775 /var/www/logs ## 0755 should also work
9292
chmod 0755 /var/www/meta ## must be 0755
93-
ss_chmod 0755 /var/www/sites ## must be 0755
94-
ss_chmod 0755 /var/www/sites/includes ## must be 0755
95-
ss_chmod 0755 /var/www/sites/error_pages ## must be 0755
93+
find /var/www/sites -type d -print0 | xargs -0 chmod 0755
94+
find /var/www/sites -type f -print0 | xargs -0 chmod 0644
9695

9796
## chmod files ##
9897
ss_chmod 0640 /var/www/meta/.htpasswd ## must be 0640

0 commit comments

Comments
 (0)