diff --git a/installer/resources/GeoLite2-Country.mmdb.gz b/installer/resources/GeoLite2-Country.mmdb.gz index 9caf7c8b3..09a9d4ab5 100644 Binary files a/installer/resources/GeoLite2-Country.mmdb.gz and b/installer/resources/GeoLite2-Country.mmdb.gz differ diff --git a/installer/resources/makegeoip.sh b/installer/resources/makegeoip.sh index ad4b834b5..7b2b32b3a 100755 --- a/installer/resources/makegeoip.sh +++ b/installer/resources/makegeoip.sh @@ -10,3 +10,9 @@ wget https://download.db-ip.com/free/$DL || exit 1 mv $FILE ${FILE}.bak mv $DL $FILE ls -l $FILE +OLD_HASH=$(sha256sum ./installer/resources/$FILE | cut -f 1 -d ' ') +NEW_HASH=$(sha256sum ./$FILE | cut -f 1 -d ' ') +echo $OLD_HASH $NEW_HASH +if [ $OLD_HASH != $NEW_HASH ]; then + cp -v "$FILE" "./installer/resources/$FILE" +fi \ No newline at end of file