modify logrotate file if the distro is debian
This commit is contained in:
1 parent
f3627d4f84
commit
7a72146e82
1 file changed
+5
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user