patch broken nginx 1.8.0 logrotate script. closes #1578

This commit is contained in:
Michael Hobbs
2015-10-21 17:21:04 -07:00
parent 6d3028271e
commit 0a9db4174b

View File

@@ -37,6 +37,9 @@ gpasswd -M "$(egrep ^adm /etc/group | awk -F ":" '{ print $4 }')" dokku
chgrp -R dokku /var/log/nginx
chmod g+r /var/log/nginx
# patch broken nginx 1.8.0 logrotate
[[ -f /etc/logrotate.d/nginx ]] && sed -i -e 's/invoke-rc.d/service/g' /etc/logrotate.d/nginx
case "$DOKKU_DISTRO" in
ubuntu)
/etc/init.d/nginx start