fix: persist users in the dokku group through installations

Closes #2908
This commit is contained in:
Jose Diaz-Gonzalez
2017-12-13 01:24:37 -05:00
parent 59414fe231
commit 70cee2df86

View File

@@ -60,7 +60,7 @@ fi
# revert dokku group changes
gpasswd -a dokku adm
chgrp -R adm /var/log/nginx
gpasswd -M "" dokku
gpasswd -M "$(egrep ^dokku: /etc/group | awk -F ":" '{ print $4 }')" dokku
[[ -f /etc/logrotate.d/nginx ]] && sed -i -e 's/create 0640 www-data dokku/create 0640 www-data adm/g' /etc/logrotate.d/nginx
# Create nginx error templates