Merge pull request #474 from eikek/consumedir-fix

Log a warning if the setup check fails
This commit is contained in:
mergify[bot] 2020-11-26 00:59:49 +00:00 committed by GitHub
commit 67e54f8a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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