mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-02 21:42:52 +00:00
Merge pull request #474 from eikek/consumedir-fix
Log a warning if the setup check fails
This commit is contained in:
commit
67e54f8a9a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user