| OLD | NEW |
| 1 /var/log/nginx/<%= @log %> { | 1 /var/log/nginx/<%= @log %> { |
| 2 daily | 2 daily |
| 3 rotate 30 | 3 rotate 30 |
| 4 compress | 4 compress |
| 5 delaycompress | 5 delaycompress |
| 6 missingok | 6 missingok |
| 7 nodateext | 7 nodateext |
| 8 sharedscripts | 8 sharedscripts |
| 9 postrotate | 9 postrotate |
| 10 [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` | 10 [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` |
| 11 test ! -e /var/log/nginx/<%= @log %>.2.gz || \ |
| 12 zcat /var/log/nginx/<%= @log %>.2.gz \ |
| 13 | /usr/local/bin/anonymize-access-log \ |
| 14 --geolite2-db /usr/share/GeoIP/GeoLite2-Country.mmdb \ |
| 15 --salt <%= scope.function_shellquote([@log_salt]) %> \ |
| 16 | gzip -9 > /var/log/archive/<%= @log %>.`date +%Y-%m-%d`.gz |
| 11 endscript | 17 endscript |
| 12 } | 18 } |
| OLD | NEW |