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