fix the monitoring

This commit is contained in:
Sebastian
2025-03-18 12:22:09 +01:00
parent 5e20ed40ca
commit 693959699c

View File

@@ -35,18 +35,20 @@ for part in "${parts[@]}"; do
if $include; then
result=$($BASEPATH/sync-status.sh "${part%.yml}")
if [[ "$result" == *"syncing"* && $? -eq 1 ]]; then
# Allow exit status 1 if result contains "syncing"
#echo "hit syncing"
elif [[ "$result" == *"lagging"* && $? -eq 1 ]]; then
# Allow exit status 1 if result contains "syncing"
#echo "hit lagging"
elif [ $? -ne 0 ]; then
echo "hit failure $?"
any_failure=true
if [ $? -ne 0 ]; then
if [[ "$result" == *"syncing"* ]]; then
# Allow exit status 1 if result contains "syncing"
true
elif [[ "$result" == *"lagging"* ]]; then
# Allow exit status 1 if result contains "syncing"
true
else
any_failure=true
fi
fi
echo "${part%.yml}: $result"
fi
done