Skip to content

Commit

Permalink
Install git before anything else
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hansson committed Feb 4, 2017
1 parent 43b105a commit 569b348
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lets-encrypt/activate-ssl.sh
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 569b348

Please sign in to comment.