INIT
This commit is contained in:
14
after.sh
Executable file
14
after.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#! /bin/bash
|
||||
|
||||
##
|
||||
## Send mail to admin
|
||||
##
|
||||
|
||||
#mail -a "From: "$HOST" Backup <"$HOST"@server.de>" -s "Backup | "$HOST $MAIL < $LOG
|
||||
|
||||
if [ ${global_exit} -ne 0 ];
|
||||
then
|
||||
echo ${global_exit}
|
||||
# curl -X POST 'https://api.telegram.org/bot$TELEGRAM_API_TOKEN/sendMessage?chat_id=$TELEGRAM_CHAT_ID&text="$(cat $LOG)"'
|
||||
wget "https://api.telegram.org/bot$TELEGRAM_API_TOKEN/sendMessage" --post-data="chat_id=$TELEGRAM_CHAT_ID&text='$(cat $LOG)'"
|
||||
fi
|
||||
Reference in New Issue
Block a user