Silence curl

pull/1246/head
Christopher Liu 5 years ago committed by Christopher Liu
parent 071ec08b34
commit c4a60c4608
  1. 4
      scripts/pagerduty.sh

@ -36,8 +36,8 @@ delay=60
### Pagerduty
if [[ $(($curtime - $latest)) -gt $delay ]]; then
# Trigger an alert
trigger=$(curl -X POST -H "$HEADER" -d "$TRIGGER" "$POSTURL")
trigger=$(curl -s -X POST -H "$HEADER" -d "$TRIGGER" "$POSTURL")
else
# Resolve an alert
resolve=$(curl -X POST -H "$HEADER" -d "$RESOLVE" "$POSTURL")
resolve=$(curl -s -X POST -H "$HEADER" -d "$RESOLVE" "$POSTURL")
fi

Loading…
Cancel
Save