Merge pull request #2672 from callahad/fix-logrotate-debian
Fix logrotate on Debian
This commit is contained in:
@@ -59,7 +59,7 @@ $DOKKU_LOGS_DIR/*.log {
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [[ "$DOKKU_DISTRO" = "debian" ]]; then
|
if [[ "$DOKKU_DISTRO" = "debian" ]]; then
|
||||||
sed -i '/\s*su syslog dokku/d; s/\(create [0-7][0-7][0-7]\) syslog dokku/\1 root dokku/g' $DOKKU_LOGROTATE_FILE
|
sed -i 's/ syslog dokku$/root dokku/g' $DOKKU_LOGROTATE_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
flag_rsyslog_needs_restart=y
|
flag_rsyslog_needs_restart=y
|
||||||
|
|||||||
Reference in New Issue
Block a user