monitoring: Don't send so many alerts

This commit is contained in:
Keith Whyte 2021-06-13 00:15:06 +02:00
parent 31f033f7f5
commit 4da91a76a4
2 changed files with 37 additions and 3 deletions

View file

@ -19,6 +19,14 @@ rawurlencode() {
_ALERT="${encoded}"
}
rawurlencode $@
if [ "$1" == "" ] ; then
echo "Message?"
exit
fi
if [ "$1" == "noenc" ] ; then
_ALERT=${@:2}
else
rawurlencode $@
fi
curl -s "<%= @bot_alert_url %>$_ALERT"