mirror of
https://github.com/Erreur32/nginx-proxy-manager-Bash-API.git
synced 2024-12-22 13:32:11 +01:00
Changed color
This commit is contained in:
parent
ac10c0a496
commit
9ac916a68d
1 changed files with 3 additions and 3 deletions
|
@ -282,13 +282,13 @@ fi
|
||||||
check_nginx_access() {
|
check_nginx_access() {
|
||||||
if ping -c 2 -W 2 $NGINX_IP &> /dev/null; then
|
if ping -c 2 -W 2 $NGINX_IP &> /dev/null; then
|
||||||
if curl --output /dev/null --silent --head --fail "$BASE_URL"; then
|
if curl --output /dev/null --silent --head --fail "$BASE_URL"; then
|
||||||
echo " ✅ Nginx url: $BASE_URL"
|
echo -e "\n ✅ Nginx url: $BASE_URL"
|
||||||
else
|
else
|
||||||
echo " ⛔ Nginx url ⛔ $BASE_URL is NOT accessible."
|
echo -e "\n ⛔ Nginx url ⛔ $BASE_URL is NOT accessible."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo " ⛔ $NGINX_IP ⛔ is not responding. Houston, we have a problem."
|
echo -e "\n ⛔ $NGINX_IP ⛔ is not responding. Houston, we have a problem."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue