Log a warning if the setup check fails

A collective can disable the endpoint at any time. So informing about
a misconfigured or disabled endpoint on start for each known
collective.

Issue: #470
This commit is contained in:
Eike Kettner
2020-11-25 21:34:15 +01:00
parent 0919eec3c2
commit 7b34586730

View File

@ -346,8 +346,8 @@ checkSetup() {
trace "Checking integration endpoint: $CURL_CMD $OPTS "$url""
status=$($CURL_CMD $OPTS "$url")
if [ "$status" != "200" ]; then
echo "[ERROR] $status response integration endpoint: $CURL_CMD $OPTS $url"
exit 1
echo "[WARN] Collective '$(basename $collective)' failed the setup check."
echo "[WARN] $status response, command: $CURL_CMD $OPTS $url"
fi
fi
done
@ -356,7 +356,7 @@ checkSetup() {
}
# quit here if something is not correctly configured
# warn if something seems not correctly configured
checkSetup
if [ "$once" = "y" ]; then