modify logrotate file if the distro is debian

This commit is contained in:
Florian Goße committed 2016-01-09 11:35:47 +01:00
1 parent f3627d4f84
commit 7a72146e82
1 file changed
+5
+5
View File
@@ -56,6 +56,11 @@ $DOKKU_LOGS_DIR/*.log {
create 664 syslog dokku create 664 syslog dokku
} }
EOF 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 flag_rsyslog_needs_restart=y
fi fi