mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Fix logrotate on Debian
Since we're creating logs as `root:dokku`, the logrotate configuration needs an `su root dokku` line, just like `su syslog dokku` on ubuntu.
This commit is contained in:
@@ -59,7 +59,7 @@ $DOKKU_LOGS_DIR/*.log {
|
||||
EOF
|
||||
|
||||
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
|
||||
|
||||
flag_rsyslog_needs_restart=y
|
||||
|
||||
Reference in New Issue
Block a user