mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-09 09:35:01 +02:00
Fixes #11142 /var/log/asterisk has 755 asterisk:asterisk permissions log files in asterisk log dir are created with 0644 permissions with this patch, logrotate keeps the 0644 permissions as installed.
17 lines
301 B
Text
17 lines
301 B
Text
/var/log/asterisk/messages /var/log/asterisk/*log {
|
|
missingok
|
|
rotate 5
|
|
weekly
|
|
create 0644 asterisk asterisk
|
|
postrotate
|
|
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
|
|
endscript
|
|
}
|
|
|
|
/var/log/asterisk/cdr-csv/*csv {
|
|
missingok
|
|
rotate 5
|
|
monthly
|
|
create 0640 asterisk asterisk
|
|
}
|
|
|