This commit is contained in:
Martin Peck 2022-02-23 14:08:06 +00:00 коммит произвёл GitHub
Родитель ca7bb00136
Коммит 4df245fdab
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -10,14 +10,14 @@ echo -e "\n\e[34m»»» ✅ \e[96mChecking pre-reqs\e[0m..."
echo -e "\n\e[96mChecking for Azure CLI\e[0m..."
if [ $? -ne 0 ]; then
echo -e "\e[31m»»» ⚠️ Azure CLI is not installed! 😥 Please go to http://aka.ms/cli to set it up"
exit
exit 1
fi
if [[ "$1" == *"azfirewall"* ]]; then
echo -e "\n\e[96mChecking for Azure CLI extension(s)\e[0m..."
az extension show -n azure-firewall > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo -e "\e[31m»»» ⚠️ Azure CLI azure-firewall extension is not installed! 😥 Please go to http://aka.ms/cli to set it up"
exit
exit 1
fi
fi
@ -26,7 +26,7 @@ if [[ "$1" != *"nodocker"* ]]; then
sudo docker version > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo -e "\e[31m»»» ⚠️ Docker is not installed! 😥 Please go to https://docs.docker.com/engine/install/ to set it up"
exit
exit 1
fi
fi
@ -35,7 +35,7 @@ if [[ "$1" == *"certbot"* ]]; then
/opt/certbot/bin/certbot --version > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo -e "\e[31m»»» ⚠️ Certbot is not installed! 😥 Please go to https://certbot.eff.org/lets-encrypt/pip-other to set it up"
exit
exit 1
fi
fi
@ -44,7 +44,7 @@ if [[ "$1" == *"porter"* ]]; then
porter --version > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo -e "\e[31m»»» ⚠️ Porter is not installed! 😥 Please go to https://porter.sh/install/ to set it up"
exit
exit 1
fi
fi
@ -61,7 +61,7 @@ export SUB_ID=$(az account show --query id -o tsv)
export TENANT_ID=$(az account show --query tenantId -o tsv)
if [ -z "$SUB_NAME" ]; then
echo -e "\n\e[31m»»» ⚠️ You are not logged in to Azure!"
exit
exit 1
fi
echo -e "\e[34m»»» 🔨 \e[96mAzure details from logged on user \e[0m"