fix makegeoip script and update geoip data

This commit is contained in:
idk
2023-04-12 21:14:04 +00:00
parent a50a65ac9f
commit 53bae90089
2 changed files with 6 additions and 0 deletions

View File

@@ -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