From 7a72146e82ebc1ce60724ad14e36f64ac3a7db78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Go=C3=9Fe?= Date: Sat, 9 Jan 2016 11:35:47 +0100 Subject: [PATCH] modify logrotate file if the distro is debian --- plugins/20_events/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/20_events/install b/plugins/20_events/install index c0be526c3..02d65f0b1 100755 --- a/plugins/20_events/install +++ b/plugins/20_events/install @@ -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