mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-02 23:43:36 +00:00
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
@@ -6,6 +6,6 @@
|
||||
compress
|
||||
sharedscripts
|
||||
postrotate
|
||||
nginx -s reload
|
||||
if [ -f /usr/local/nginx/logs/nginx.pid ]; then nginx -s reload fi
|
||||
endscript
|
||||
}
|
||||
|
@@ -364,6 +364,8 @@ fi
|
||||
if [ "$LOGROTATE" = "true" ]; then
|
||||
apk add --no-cache logrotate
|
||||
sed -i "s|rotate [0-9]\+|rotate $LOGROTATIONS|g" /etc/logrotate
|
||||
touch /data/nginx/access.log \
|
||||
/data/nginx/stream.log
|
||||
elif [ "$FULLCLEAN" = "true" ]; then
|
||||
rm -vrf /data/etc/logrotate.status \
|
||||
/data/nginx/access.log \
|
||||
|
Reference in New Issue
Block a user