mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Fixed logrotate script to have proper permissions and wqrestart nginx after logrotate, otherwise it won't write the log anymore
This commit is contained in:
parent
b5ae93f678
commit
bf1aa3b980
1 changed files with 12 additions and 1 deletions
|
@ -2,7 +2,18 @@
|
|||
monthly
|
||||
rotate 52
|
||||
dateext
|
||||
create
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
create 0640 www-data adm
|
||||
sharedscripts
|
||||
prerotate
|
||||
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
|
||||
run-parts /etc/logrotate.d/httpd-prerotate; \
|
||||
fi \
|
||||
endscript
|
||||
postrotate
|
||||
invoke-rc.d nginx rotate >/dev/null 2>&1
|
||||
endscript
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue