Skip to content

Commit

Permalink
Merge pull request #78 from brknkfr/fix_status_alert
Browse files Browse the repository at this point in the history
Display alert message when there is an outage ...
  • Loading branch information
Cyclenerd authored Nov 3, 2023
2 parents a6d1be9 + b7d13fe commit 483e184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ MY_DEGRADE_COUNT=$((MY_OUTAGE_COUNT + MY_DEGRADE_COUNT))
if [ -s "$MY_MAINTENANCE_TEXT_FILE" ]; then
page_alert_maintenance
# or status alert
elif [[ "$MY_DEGRADE_COUNT" -gt "$MY_AVAILABLE_COUNT" ]]; then
elif [[ "$MY_OUTAGE_COUNT" -gt "$MY_AVAILABLE_COUNT" ]]; then
page_alert_danger
elif [[ "$MY_DEGRADE_COUNT" -gt "0" ]]; then
page_alert_warning
Expand Down

0 comments on commit 483e184

Please sign in to comment.