Add the dbip mod

This commit is contained in:
quietsy
2021-12-04 18:36:33 +02:00
parent d1dc6e5858
commit 9a0b5ce95d
9 changed files with 98 additions and 69 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
DATE=$(date '+%Y-%m')
FILE="https://download.db-ip.com/free/dbip-country-lite-${DATE}.mmdb.gz"
wget -O /tmp/dbip-country-lite.mmdb.gz $FILE
gzip -df /tmp/dbip-country-lite.mmdb.gz
mv -f /tmp/dbip-country-lite.mmdb /config/geoip2db/dbip-country-lite.mmdb
exit 0