From 7cc747c792fb1a490163427e671c51298c7652b9 Mon Sep 17 00:00:00 2001 From: Brad Decker Date: Fri, 18 Jun 2021 11:45:58 -0500 Subject: [PATCH] change download location of chrome file (#11346) * change download location of chrome file * Update .circleci/scripts/chrome-install.sh Co-authored-by: Mark Stacey Co-authored-by: Mark Stacey --- .circleci/scripts/chrome-install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/scripts/chrome-install.sh b/.circleci/scripts/chrome-install.sh index 491e8c3ed..c301f9056 100755 --- a/.circleci/scripts/chrome-install.sh +++ b/.circleci/scripts/chrome-install.sh @@ -6,10 +6,17 @@ set -o pipefail CHROME_VERSION='79.0.3945.117-1' CHROME_BINARY="google-chrome-stable_${CHROME_VERSION}_amd64.deb" -CHROME_BINARY_URL="http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/${CHROME_BINARY}" +CHROME_BINARY_URL="http://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/${CHROME_BINARY}" + +CHROME_BINARY_SHA512SUM='2d4f76202219a40e560477d79023fa4a847187a086278924a9d916dcd5fbefafdcf7dfd8879fae907b8276b244e71a3b8a1b00a88dee87b18738ce31134a6713' wget -O "${CHROME_BINARY}" -t 5 "${CHROME_BINARY_URL}" +if [[ $(shasum -a 512 "${CHROME_BINARY}" | cut '--delimiter= ' -f1) != "${CHROME_BINARY_SHA512SUM}" ]] +then + exit 1 +fi + (sudo dpkg -i "${CHROME_BINARY}" || sudo apt-get -fy install) rm -rf "${CHROME_BINARY}"