fix the monitoring
This commit is contained in:
@@ -34,17 +34,17 @@ for part in "${parts[@]}"; do
|
|||||||
|
|
||||||
if $include; then
|
if $include; then
|
||||||
result=$($BASEPATH/sync-status.sh "${part%.yml}")
|
result=$($BASEPATH/sync-status.sh "${part%.yml}")
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
if [[ "$result" == *"syncing"* && $? -eq 1 ]]; then
|
if [[ "$result" == *"syncing"* && $? -eq 1 ]]; then
|
||||||
# Allow exit status 1 if result contains "syncing"
|
# Allow exit status 1 if result contains "syncing"
|
||||||
true
|
true
|
||||||
elif [[ "$result" == *"lagging"* && $? -eq 1 ]]; then
|
elif [[ "$result" == *"lagging"* && $? -eq 1 ]]; then
|
||||||
# Allow exit status 1 if result contains "syncing"
|
# Allow exit status 1 if result contains "syncing"
|
||||||
true
|
true
|
||||||
else
|
elif [ $? -ne 0 ]; then
|
||||||
any_failure=true
|
any_failure=true
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
echo "${part%.yml}: $result"
|
echo "${part%.yml}: $result"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user