Merge pull request #1849 from floriangosse/fix-debian-log-user

Fix logrotate file for debian system
This commit is contained in:
Jose Diaz-Gonzalez committed 2016-01-09 08:01:48 -05:00
commit 353f96cb93
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