mirror of
https://github.com/certbot/certbot.git
synced 2026-04-28 09:39:53 -04:00
the || isn't right for update
This commit is contained in:
parent
15cc9e1826
commit
122a36ebd2
1 changed files with 5 additions and 1 deletions
|
|
@ -11,8 +11,12 @@ export PIP_INDEX_URL="https://isnot.org/pip/0.1.0/"
|
|||
|
||||
#OLD_LEAUTO="https://raw.githubusercontent.com/letsencrypt/letsencrypt/5747ab7fd9641986833bad474d71b46a8c589247/letsencrypt-auto"
|
||||
|
||||
|
||||
if ! command -v git ; then
|
||||
if ! ( sudo apt-get update || sudo apt-get install -y git || sudo yum install -y git-all || sudo yum install -y git || sudo dnf install -y git ) ; then
|
||||
if [ "$OS_TYPE" = "ubuntu" ] ; then
|
||||
sudo apt-get update
|
||||
fi
|
||||
if ! ( sudo apt-get install -y git || sudo yum install -y git-all || sudo yum install -y git || sudo dnf install -y git ) ; then
|
||||
echo git installation failed!
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue