when sending notification
This commit is contained in:
2024-11-02 12:52:11 +01:00
parent 71881ab882
commit ca572b13b4

View File

@@ -80,6 +80,7 @@ send_gotify_notification() {
send_pushover_notification() { send_pushover_notification() {
echo -e "Sending Pushover notification ..." echo -e "Sending Pushover notification ..."
curl -S -s -o /dev/null -F "token=$BASH_APP" \ curl -S -s -o /dev/null -F "token=$BASH_APP" \
-F "user=$USER_KEY" \ -F "user=$USER_KEY" \
-F "title=$1" \ -F "title=$1" \
@@ -317,11 +318,11 @@ done
# Affichage des serveurs qui ne répondent pas # Affichage des serveurs qui ne répondent pas
if [ -f "./urls_down_list_curl.txt" ]; then if [ -f "./urls_down_list_curl.txt" ]; then
cp "./urls_down_list_curl.txt" urls_down_list_curl.bak
url_down=$(cat "./urls_down_list_curl.txt")
if [ "$x" -ne 1 ]; then if [ "$x" -ne 1 ]; then
echo -e "\n${redbold}Url down: ${reset}" echo -e "\n${redbold}Url down: ${reset}"
cp "./urls_down_list_curl.txt" urls_down_list_curl.bak
url_down=$(cat "./urls_down_list_curl.txt")
echo -e "$url_down" echo -e "$url_down"
# On affiche uniquement les erreurs rencontrées # On affiche uniquement les erreurs rencontrées