Update basics.yml
This commit is contained in:
parent
4aa71d7bc7
commit
95170a7d5f
14
basics.yml
14
basics.yml
@ -757,8 +757,13 @@
|
||||
g_nice
|
||||
g_lockfile
|
||||
|
||||
[ -f /usr/local/etc/notify.conf ] && . /usr/local/etc/notify.conf
|
||||
|
||||
if [ -f /usr/local/etc/notify.conf ]
|
||||
then
|
||||
. /usr/local/etc/notify.conf
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
to="$default_to"
|
||||
togroup="$default_togroup"
|
||||
|
||||
@ -808,6 +813,11 @@
|
||||
echo "$message" | mail -s "notify.sh: $subj" $tomail
|
||||
fi
|
||||
|
||||
if ! [ -f /home/signal/.local/share/signal-cli/data/accounts.json ]
|
||||
then
|
||||
echo "No Signal account?!"
|
||||
exit 1
|
||||
fi
|
||||
account=$(cat /home/signal/.local/share/signal-cli/data/accounts.json | jq -r '.accounts[0].number' | sed 's/+/_/')
|
||||
if [ -z "$account" ]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user