|
|
|
@ -7,7 +7,7 @@ fi |
|
|
|
|
|
|
|
|
|
|
|
# The actual health check. |
|
|
|
# The actual health check. |
|
|
|
# We try to first get a response on HTTP and when that fails on HTTPS and when that fails, we exit with code 1. |
|
|
|
# We try to first get a response on HTTP and when that fails on HTTPS and when that fails, we exit with code 1. |
|
|
|
# TODO: Change this to a single curl call. Do we have a config value that we can check for that? |
|
|
|
# TODO: Change this to a single wget call. Do we have a config value that we can check for that? |
|
|
|
curl --fail -s "http://localhost:${CONDUIT_PORT}/_matrix/client/versions" || \ |
|
|
|
wget --no-verbose --tries=1 --spider "http://localhost:${CONDUIT_PORT}/_matrix/client/versions" || \ |
|
|
|
curl -k --fail -s "https://localhost:${CONDUIT_PORT}/_matrix/client/versions" || \ |
|
|
|
wget --no-verbose --tries=1 --spider "https://localhost:${CONDUIT_PORT}/_matrix/client/versions" || \ |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
|