Files
mailinabox/conf/cron/update_geoipdb

8 regels
231 B
Bash

#!/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