generated from pavel.muhortov/template-bash
update error notification
This commit is contained in:
parent
f75d2564bd
commit
8889545d70
|
@ -29,7 +29,7 @@ execquite() {
|
||||||
}
|
}
|
||||||
execerror() {
|
execerror() {
|
||||||
addtologs "error: $1"
|
addtologs "error: $1"
|
||||||
curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="error: $1" >> /dev/null 2>&1
|
curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="$(basename -s .sh $0) error: $1" >> /dev/null 2>&1
|
||||||
execquite
|
execquite
|
||||||
}
|
}
|
||||||
getconfig() {
|
getconfig() {
|
||||||
|
|
|
@ -32,7 +32,7 @@ execquite() {
|
||||||
}
|
}
|
||||||
execerror() {
|
execerror() {
|
||||||
addtologs "error: $1"
|
addtologs "error: $1"
|
||||||
curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="error: $1" >> /dev/null 2>&1
|
curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="$(basename -s .sh $0) error: $1" >> /dev/null 2>&1
|
||||||
execquite
|
execquite
|
||||||
}
|
}
|
||||||
getconfig() {
|
getconfig() {
|
||||||
|
|
|
@ -32,7 +32,7 @@ execquite() {
|
||||||
}
|
}
|
||||||
execerror() {
|
execerror() {
|
||||||
addtologs "error: $1"
|
addtologs "error: $1"
|
||||||
curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="error: $1" >> /dev/null 2>&1
|
curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="$(basename -s .sh $0) error: $1" >> /dev/null 2>&1
|
||||||
execquite
|
execquite
|
||||||
}
|
}
|
||||||
getconfig() {
|
getconfig() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user