diff options
Diffstat (limited to 'allstar/allstar-brb')
| -rwxr-xr-x | allstar/allstar-brb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/allstar/allstar-brb b/allstar/allstar-brb new file mode 100755 index 0000000..294e73c --- /dev/null +++ b/allstar/allstar-brb @@ -0,0 +1,22 @@ +#!/bin/bash + +if [ -f /var/lib/asterisk/brb/pressed ]; then + /usr/local/bin/allstar-restart + + /usr/bin/ssmtp -t <<EOM +From: Asterisk <root@megalink.network> +To: zabbix@megalink.network +Subject: Big Red Button Pushed - $(hostname) + +This is the allstar-brb program on $(hostname) + +Asterisk was cycled at: + +$(date) + +due to someone pushing the big red button! + +Be will, John Spartan +EOM + +fi |
