From 569b3480aec69f04fb149cc61366532789db0e0c Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sat, 4 Feb 2017 16:02:38 +0100 Subject: [PATCH] Install git before anything else --- lets-encrypt/activate-ssl.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lets-encrypt/activate-ssl.sh b/lets-encrypt/activate-ssl.sh index c021a4b87e..61c1de73ce 100644 --- a/lets-encrypt/activate-ssl.sh +++ b/lets-encrypt/activate-ssl.sh @@ -18,6 +18,17 @@ then exit 1 fi +# Install git + git --version 2>&1 >/dev/null + GIT_IS_AVAILABLE=$? +if [ $GIT_IS_AVAILABLE -eq 0 ] +then + sleep 1 +else + apt update -q2 + apt install git -y -q +fi + clear cat << STARTMSG @@ -100,17 +111,6 @@ else exit fi -# Install git - git --version 2>&1 >/dev/null - GIT_IS_AVAILABLE=$? -if [ $GIT_IS_AVAILABLE -eq 0 ] -then - sleep 1 -else - apt update -q2 - apt install git -y -q -fi - # Fetch latest version of test-new-config.sh SCRIPTS=/var/scripts