mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-03 00:07:05 +00:00
8 lines
231 B
Bash
8 lines
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
|