Merge pull request #6703 from dokku/logrotate-perms

Use copytruncate in logrotate commands
This commit is contained in:
Jose Diaz-Gonzalez
2024-03-13 01:52:20 -04:00
committed by GitHub

View File

@@ -56,16 +56,12 @@ EOF
cat >"$DOKKU_LOGROTATE_FILE" <<EOF
$DOKKU_LOGS_DIR/*.log {
daily
rotate 7
missingok
notifempty
su syslog dokku
rotate 7
compress
delaycompress
postrotate
reload rsyslog &>/dev/null || true
endscript
create 664 syslog dokku
notifempty
copytruncate
}
EOF