Update basics.yml

This commit is contained in:
olli 2023-07-01 17:06:35 +02:00
parent 4aa71d7bc7
commit 95170a7d5f

View File

@ -757,8 +757,13 @@
g_nice g_nice
g_lockfile 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" to="$default_to"
togroup="$default_togroup" togroup="$default_togroup"
@ -808,6 +813,11 @@
echo "$message" | mail -s "notify.sh: $subj" $tomail echo "$message" | mail -s "notify.sh: $subj" $tomail
fi 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/+/_/') account=$(cat /home/signal/.local/share/signal-cli/data/accounts.json | jq -r '.accounts[0].number' | sed 's/+/_/')
if [ -z "$account" ] if [ -z "$account" ]
then then