diff options
| author | Jason D. McCormick <jason@mfamily.org> | 2020-04-14 21:06:28 -0400 |
|---|---|---|
| committer | Jason D. McCormick <jason@mfamily.org> | 2020-04-14 21:06:28 -0400 |
| commit | 1733e5fe839caff338a664a39208599afe8df42b (patch) | |
| tree | c15a80d60a818cfe9a0fc8dc64ac092cc5511de3 /allstar/allstar-brb | |
| parent | 820a97dcdd2a7c5bc6ae8bf5798578caa87ee77f (diff) | |
adding the big red button stuff
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 |
