continue to write the log information in the newly created file after rotating the old log file

This commit is contained in:
Dominik Winter 2016-03-11 21:37:04 +01:00
parent dc796ea9f2
commit 082577f27b

View file

@ -158,7 +158,7 @@ case $DMS_SSL in
sed -i -r 's/TLS_CERTFILE=\/etc\/courier\/pop3d.pem/TLS_CERTFILE=\/etc\/postfix\/ssl\/'$(hostname)'-full.pem/g' /etc/courier/pop3d-ssl sed -i -r 's/TLS_CERTFILE=\/etc\/courier\/pop3d.pem/TLS_CERTFILE=\/etc\/postfix\/ssl\/'$(hostname)'-full.pem/g' /etc/courier/pop3d-ssl
echo "SSL configured with CA signed/custom certificates" echo "SSL configured with CA signed/custom certificates"
fi fi
;; ;;
@ -224,6 +224,8 @@ sed -i "/^findtime *=/c\findtime = 10800" /etc/fail2ban/jail.conf
# avoid warning on startup # avoid warning on startup
echo "ignoreregex =" >> /etc/fail2ban/filter.d/postfix-sasl.conf echo "ignoreregex =" >> /etc/fail2ban/filter.d/postfix-sasl.conf
# continue to write the log information in the newly created file after rotating the old log file
sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf
echo "Starting daemons" echo "Starting daemons"
cron cron