Update nginx_proxy_manager_cli.sh

This commit is contained in:
Erreur32 2024-07-12 22:12:38 +02:00 committed by GitHub
parent 82831157a8
commit 06552654fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -282,9 +282,9 @@ 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 -e "\n ✅ Nginx url: $BASE_URL" echo -e "\n ✅ Nginx url: $BASE_URL"
else else
echo -e "\n ⛔ 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