Files
i2p.i2p/installer/resources/makegeoip.sh

13 lines
260 B
Bash
Executable File

#!/bin/sh
#
# Fetch the latest file from db-ip.com
#
rm -f dbip-country-lite-*
VER=`date +%Y-%m`
DL=dbip-country-lite-${VER}.mmdb.gz
FILE=GeoLite2-Country.mmdb.gz
wget https://download.db-ip.com/free/$DL || exit 1
mv $FILE ${FILE}.bak
mv $DL $FILE
ls -l $FILE