Fix https healthcheck

This commit is contained in:
Semen Bezrukov 2020-04-29 12:24:07 +03:00
parent 102150ea63
commit d062591887

View file

@ -1,5 +1,6 @@
#!/bin/bash
url=${url:-"https://localhost"}
private_key=tls.key
certificate_request=tls.csr
certificate=tls.crt
@ -41,7 +42,7 @@ wakeup_timeout=30
# Get documentserver healthcheck status
echo "Wait for service wake up"
sleep $wakeup_timeout
healthcheck_res=$(wget --no-check-certificate -qO - localhost/healthcheck)
healthcheck_res=$(wget --no-check-certificate -qO - ${url}/healthcheck)
# Fail if it isn't true
if [[ $healthcheck_res == "true" ]]; then