changed some lines

This commit is contained in:
Pakobbix 2023-03-01 20:01:59 +01:00
parent 3814c3f598
commit 2d07f7a321

View File

@ -243,7 +243,7 @@ for SurfbarLinks in $SurfbarName; do
exit 1 exit 1
else else
if [ -z "$ProcessID" ]; then if [ -z "$ProcessID" ]; then
curl -X POST -H 'Content-Type: application/json' -d '{"chat_id": "'"$Telegram_UID"'", "text": "This is a test from curl", "disable_notification": true}' https://api.telegram.org/bot$Telegram_BT/sendMessage curl -X POST -H 'Content-Type: application/json' -d '{"chat_id": "'"$Telegram_UID"'", "text": "'"Ebesucher auf $surflink"'", "disable_notification": true}' https://api.telegram.org/bot$Telegram_BT/sendMessage
else else
exit 1 exit 1
fi fi
@ -287,6 +287,7 @@ for SurfbarLinks in $SurfbarName; do
exit 1 exit 1
else else
if [ -z "$ProcessID" ]; then if [ -z "$ProcessID" ]; then
curl -X POST -H 'Content-Type: application/json' -d '{"chat_id": "'"$Telegram_UID"'", "text": "'"Ebesucher auf $surflink"'", "disable_notification": true}' https://api.telegram.org/bot$Telegram_BT/sendMessage
curl -u "$PushBulletToken": -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary '{"type": "note", "title": "Passive-Income Notification: Ebesucher ist Abgestürzt", "body": "Ebesucher Container '"$SurfbarLinks"' ist down"}' curl -u "$PushBulletToken": -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary '{"type": "note", "title": "Passive-Income Notification: Ebesucher ist Abgestürzt", "body": "Ebesucher Container '"$SurfbarLinks"' ist down"}'
else else
exit 1 exit 1