From 824868f497c6a64da47614d9d56b977688613e49 Mon Sep 17 00:00:00 2001 From: Robert Izzard <r.izzard@surrey.ac.uk> Date: Sat, 31 Jul 2021 15:37:10 +0100 Subject: [PATCH] add "no check certificate" as required by wget --- ubuntu_install_binary_c.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ubuntu_install_binary_c.sh b/ubuntu_install_binary_c.sh index 5160d4de2..648f3a6a4 100755 --- a/ubuntu_install_binary_c.sh +++ b/ubuntu_install_binary_c.sh @@ -68,6 +68,10 @@ done mkdir -p $GITROOT cd $GITROOT +############################################################ +# commands +WGET="wget --no-check-certificate" + ############################################################ versionsorter() { [ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ] @@ -167,7 +171,7 @@ function install_from_surrey_git # download and install $PACKAGE mkdir -p $GITROOT cd $GITROOT - wget https://gitlab.eps.surrey.ac.uk/ri0005/$PACKAGE/-/archive/master/$PACKAGE-master.zip -O $PACKAGE-master.zip + $WGET https://gitlab.eps.surrey.ac.uk/ri0005/$PACKAGE/-/archive/master/$PACKAGE-master.zip -O $PACKAGE-master.zip unzip -o $PACKAGE-master.zip cd $PACKAGE-master/ if [ -d builddir ]; @@ -187,7 +191,7 @@ function install_binary_c_from_zip exit fi cd /tmp # work from /tmp - wget https://gitlab.eps.surrey.ac.uk/ri0005/binary_c/-/archive/master/binary_c-master.zip -O binary_c-master.zip + $WGET https://gitlab.eps.surrey.ac.uk/ri0005/binary_c/-/archive/master/binary_c-master.zip -O binary_c-master.zip unzip -o binary_c-master.zip rm binary_c-master.zip mv binary_c-master $BINARY_C @@ -307,7 +311,7 @@ function download_MINT_data mkdir -p $HOME/data/MINT cd $HOME/data/MINT rm -f sync - wget http://personal.ph.surrey.ac.uk/~ri0005/MINT/sync + $WGET http://personal.ph.surrey.ac.uk/~ri0005/MINT/sync chmod +x sync ./sync } -- GitLab