Ensure geoip directory exists

This commit is contained in:
TheSpad 2023-07-27 10:10:20 +01:00
parent 17612a0ca5
commit 95da9e44d3
No known key found for this signature in database
GPG Key ID: 08F06191F4587860

View File

@ -7,6 +7,7 @@ chmod +x /etc/periodic/weekly/dbip
# check GeoIP2 database
if [ ! -f /config/geoip2db/dbip-country-lite.mmdb ]; then
echo "Downloading GeoIP2 City database."
mkdir -p "/config/geoip2db"
/etc/periodic/weekly/dbip
fi