mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Merge pull request #6703 from dokku/logrotate-perms
Use copytruncate in logrotate commands
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user