Merge pull request #6703 from dokku/logrotate-perms

Use copytruncate in logrotate commands
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2024-03-13 01:52:20 -04:00
commit eb9a75496c
1 file changed
+3 -7
+3 -7
View File
@@ -56,16 +56,12 @@ EOF
cat >"$DOKKU_LOGROTATE_FILE" <<EOF cat >"$DOKKU_LOGROTATE_FILE" <<EOF
$DOKKU_LOGS_DIR/*.log { $DOKKU_LOGS_DIR/*.log {
daily daily
rotate 7
missingok missingok
notifempty rotate 7
su syslog dokku
compress compress
delaycompress delaycompress
postrotate notifempty
reload rsyslog &>/dev/null || true copytruncate
endscript
create 664 syslog dokku
} }
EOF EOF