mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
update site_200
This commit is contained in:
parent
057bdb4aa8
commit
b0f99cf6e2
3
lib.sh
3
lib.sh
@ -242,7 +242,8 @@ done
|
||||
# Checks if site is reachable with a HTTP 200 status
|
||||
site_200() {
|
||||
print_text_in_color "$ICyan" "Checking connection..."
|
||||
CURL_STATUS="$(curl -sSL -w "%{http_code}" "${1}" | tail -1)"
|
||||
# CURL_STATUS="$(curl -sSL -w "%{http_code}" "${1}" | tail -1)"
|
||||
CURL_STATUS="$(curl -LI "${1}" -o /dev/null -w '%{http_code}\n' -s)"
|
||||
if [[ "$CURL_STATUS" = "200" ]]
|
||||
then
|
||||
return 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user