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:
7
conf/cron/update_geoipdb
Normal file
7
conf/cron/update_geoipdb
Normal 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
|
||||
Reference in New Issue
Block a user