make sure dokku can read nginx logs and don't remove other perms. closes #1572
This commit is contained in:
@@ -32,6 +32,11 @@ fi
|
||||
|
||||
echo 'server_names_hash_bucket_size 512;' >| /etc/nginx/conf.d/server_names_hash_bucket_size.conf
|
||||
|
||||
# make sure dokku can read the default log dir
|
||||
gpasswd -M "$(egrep ^adm /etc/group | awk -F ":" '{ print $4 }')" dokku
|
||||
chgrp -R dokku /var/log/nginx
|
||||
chmod g+r /var/log/nginx
|
||||
|
||||
case "$DOKKU_DISTRO" in
|
||||
ubuntu)
|
||||
/etc/init.d/nginx start
|
||||
|
||||
Reference in New Issue
Block a user