modify logrotate file if the distro is debian

This commit is contained in:
Florian Goße
2016-01-09 11:35:47 +01:00
parent f3627d4f84
commit 7a72146e82

View File

@@ -56,6 +56,11 @@ $DOKKU_LOGS_DIR/*.log {
create 664 syslog dokku
}
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
fi
flag_rsyslog_needs_restart=y
fi