Replaced HOST and HOSTNAME variable through hostname command to make it more distribution indepentend

This commit is contained in:
2025-04-05 18:28:20 +02:00
parent c31a8fb329
commit d5ba306081
2 changed files with 2 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
#!/bin/bash
/usr/bin/curl -s -X POST https://api.telegram.org/bot{{ telegram_bot_token }}/sendMessage -d chat_id={{ telegram_chat_id }} -d text="service $1 on $HOST failed"
/usr/bin/curl -s -X POST https://api.telegram.org/bot{{ telegram_bot_token }}/sendMessage -d chat_id={{ telegram_chat_id }} -d text="service $1 on $(hostname) failed"