Change default logrotate settings for /var/mail/maillog (#1667)
Change default logrotate settings for /var/mail/maillog See also: https://github.com/tomav/docker-mailserver/issues/1666
This commit is contained in:
parent
2f840d7da5
commit
ab45ae5504
|
@ -1691,15 +1691,15 @@ function _setup_logrotate
|
||||||
case "${LOGROTATE_INTERVAL}" in
|
case "${LOGROTATE_INTERVAL}" in
|
||||||
"daily" )
|
"daily" )
|
||||||
_notify 'inf' "Setting postfix logrotate interval to daily"
|
_notify 'inf' "Setting postfix logrotate interval to daily"
|
||||||
LOGROTATE="${LOGROTATE} rotate 1\n daily\n"
|
LOGROTATE="${LOGROTATE} rotate 4\n daily\n"
|
||||||
;;
|
;;
|
||||||
"weekly" )
|
"weekly" )
|
||||||
_notify 'inf' "Setting postfix logrotate interval to weekly"
|
_notify 'inf' "Setting postfix logrotate interval to weekly"
|
||||||
LOGROTATE="${LOGROTATE} rotate 1\n weekly\n"
|
LOGROTATE="${LOGROTATE} rotate 4\n weekly\n"
|
||||||
;;
|
;;
|
||||||
"monthly" )
|
"monthly" )
|
||||||
_notify 'inf' "Setting postfix logrotate interval to monthly"
|
_notify 'inf' "Setting postfix logrotate interval to monthly"
|
||||||
LOGROTATE="${LOGROTATE} rotate 1\n monthly\n"
|
LOGROTATE="${LOGROTATE} rotate 4\n monthly\n"
|
||||||
;;
|
;;
|
||||||
* ) _notify 'warn' 'LOGROTATE_INTERVAL not found in _setup_logrotate' ;;
|
* ) _notify 'warn' 'LOGROTATE_INTERVAL not found in _setup_logrotate' ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue