mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user