mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
The Asterisk logrotate script contains explicit
references to files with the .log extension,
which are also included when *log is expanded.
This causes issues with newer versions of logrotate.
This fixes this by ensuring that a log file cannot
be referenced multiple times after expansion occurs.
Resolves: #96
ASTERISK-30442
Reported by: EN Barnett
Tested by: EN Barnett
(cherry picked from commit 22c9d52289
)
14 lines
254 B
Plaintext
14 lines
254 B
Plaintext
__LOGDIR__/*.log __LOGDIR__/queue_log __LOGDIR__/mmlog {
|
|
weekly
|
|
missingok
|
|
rotate 52
|
|
compress
|
|
delaycompress
|
|
notifempty
|
|
create 640 root root
|
|
sharedscripts
|
|
postrotate
|
|
__SBINDIR__/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
|
|
endscript
|
|
}
|