logrotate
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
CertPusher - Automated SSL Certificate Distribution Tool
|
CertPusher - Automated SSL Certificate Distribution Tool
|
||||||
Version 1.2 - Production Ready with MikroTik Services Support
|
Version 1.2 - Production Ready with MikroTik Services Support
|
||||||
|
Author: @linuxiarz.pl, Mateusz Gruszczyńśki
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import configparser
|
import configparser
|
||||||
|
|||||||
16
logrotate_certpusher
Normal file
16
logrotate_certpusher
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/opt/certpusher/logs/*.log {
|
||||||
|
daily
|
||||||
|
rotate 7
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
create 0644 root root
|
||||||
|
dateext
|
||||||
|
dateformat -%Y%m%d
|
||||||
|
extension .log
|
||||||
|
nomail
|
||||||
|
postrotate
|
||||||
|
find /opt/certpusher/logs -name "*.log*" -type f -mtime +3 -delete
|
||||||
|
endscript
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user