From 109ffaa13d4f435b2cd2882912b0f87cbd438b6e Mon Sep 17 00:00:00 2001 From: Matthew Wilson <22526682+automationator@users.noreply.github.com> Date: Mon, 23 Mar 2020 12:36:07 -0400 Subject: [PATCH] Fixes MaxMind SHA256 installer bug The command used to edit the sha256 MaxMind file caused it to be replaced with a null file. This properly edits the file in place. --- install_dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_dependencies.sh b/install_dependencies.sh index aff18a8..cb4c956 100755 --- a/install_dependencies.sh +++ b/install_dependencies.sh @@ -151,7 +151,7 @@ while [ "$(sha256sum -c GeoLite2-City.tar.gz.sha256 >/dev/null; echo $?)" != "0" echo "Redownloading GeoLite Assets, if this loops, CTRL-C and investigate" wget "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=${MM_LIC}&suffix=tar.gz" -O GeoLite2-City.tar.gz wget "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=${MM_LIC}&suffix=tar.gz.sha256" -O GeoLite2-City.tar.gz.sha256 - cat GeoLite2-City.tar.gz.sha256 |sed 's/_.*/.tar.gz/' > GeoLite2-City.tar.gz.sha256 + sed -i 's/_.*/.tar.gz/' GeoLite2-City.tar.gz.sha256 sleep 3 done tar xvfz GeoLite2-City.tar.gz