1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-25 19:17:22 +01:00

move nginx geoip blocking to GeoIP database version 2, simplyfing geoip installation

This commit is contained in:
KiekerJan
2023-03-10 21:33:08 +01:00
parent 4e4055b956
commit 87d871a480
6 changed files with 31 additions and 71 deletions

7
conf/cron/update_geoipdb Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
#
# update geoip database cron weekly
if [[ ! -d /usr/share/GeoIP || ! -f /usr/share/GeoIP/GeoLite2-Country.mmdb || $(find "/usr/share/GeoIP/GeoLite2-Country.mmdb" -mtime +60 -print) ]]; then
goiplookup db-update
fi