Skip to content

Commit cb4f174

Browse files
committed
Allow nginx log group writes
1 parent ae670d5 commit cb4f174

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bash/ss-perms-nginx-config.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ if [ ! -f "/var/www/logs/nginx-error.log" ]; then ss_touch "/var/www/logs/nginx-
102102
if [ ! -f "/var/www/logs/nginx-access.log" ]; then ss_touch "/var/www/logs/nginx-access.log"; fi
103103

104104
## reset permissions ##
105-
ss_chown www-data:www-data /var/www/logs/nginx*.log
106-
ss_chmod 0644 /var/www/logs/nginx*.log ## 0755 should also work
105+
ss_chown root:www-data /var/www/logs/nginx*.log ## must be root:www-data
106+
ss_chmod 0660 /var/www/logs/nginx*.log ## must be 0660
107107

108108
## ADD perms for Nginx submodules here... Adminer, etc ##
109109
## DO IT HERE

0 commit comments

Comments
 (0)