swag-dbip update/add workflows

This commit is contained in:
aptalca
2023-05-18 14:54:18 -04:00
parent e217c4e5e7
commit 66811daad8
5 changed files with 63 additions and 69 deletions
-17
View File
@@ -1,17 +0,0 @@
#!/usr/bin/with-contenv bash
echo "Applying the dbip mod..."
chmod +x /etc/periodic/weekly/dbip
# check GeoIP2 database
if [ ! -f /config/geoip2db/dbip-country-lite.mmdb ]; then
echo "Downloading GeoIP2 City database."
/etc/periodic/weekly/dbip
fi
if [ ! -f /config/nginx/dbip.conf ]; then
cp /defaults/dbip.conf /config/nginx/dbip.conf
fi
echo "Applied the dbip mod"