copr-backend: ignore 209.132.184.53 when counting rpm downloads

* that ip belongs to copr-builder-gateway.fedorainfracloud.org
* also ignore other ips on the same /24 subnet
This commit is contained in:
clime 2018-02-26 19:59:39 +01:00
parent 4f901eb9cf
commit a9c57de46e

View file

@ -6,9 +6,9 @@
compress
prerotate
{% if devel %}
/usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnet 172.25.144.0/20 &>>/var/log/copr-backend/hitcounter-logrotate.log || :
/usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnets 172.25.144.0/20 209.132.184.33/24 &>>/var/log/copr-backend/hitcounter-logrotate.log || :
{% else %}
/usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnet 172.25.80.0/20 &>>/var/log/copr-backend/hitcounter-logrotate.log || :
/usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnets 172.25.80.0/20 209.132.184.33/24 &>>/var/log/copr-backend/hitcounter-logrotate.log || :
{% endif %}
endscript
postrotate