Fix signature file being gzipped

This commit is contained in:
Viktor Liu 2024-02-27 11:41:24 +01:00
parent 7251150c1c
commit 1e630b5d45

View File

@ -30,6 +30,9 @@ download_geolite_mmdb() {
# Verify the signature # Verify the signature
echo "Verifying signature..." echo "Verifying signature..."
mv "$SIGNATURE_FILE" "$SIGNATURE_FILE".gz
gunzip "$SIGNATURE_FILE".gz
if sha256sum -c --status "$SIGNATURE_FILE"; then if sha256sum -c --status "$SIGNATURE_FILE"; then
echo "Signature is valid." echo "Signature is valid."
else else
@ -71,6 +74,8 @@ download_geolite_csv_and_create_sqlite_db() {
# Verify the signature # Verify the signature
echo "Verifying signature..." echo "Verifying signature..."
mv "$SIGNATURE_FILE" "$SIGNATURE_FILE".gz
gunzip "$SIGNATURE_FILE".gz
if sha256sum -c --status "$SIGNATURE_FILE"; then if sha256sum -c --status "$SIGNATURE_FILE"; then
echo "Signature is valid." echo "Signature is valid."
else else