diff --git a/updater.sh b/updater.sh index ba1d405..695152a 100644 --- a/updater.sh +++ b/updater.sh @@ -125,7 +125,6 @@ EOF } send_update_notification() { - [[ "$MODE" == "update" ]] || return 0 [[ "$NOTIFY_ENABLED" == "yes" ]] || return 0 if ! ensure_notification_setup; then @@ -142,7 +141,11 @@ send_update_notification() { status="FEHLER" fi - title="Proxmox Updater - $status" + if [[ "$MODE" == "check" ]]; then + title="Proxmox Update-Check - $status" + else + title="Proxmox Updater - $status" + fi message="Proxmox Guest Updater Host: $(hostname) @@ -1216,6 +1219,10 @@ if [[ "$MODE" == "update" ]]; then send_update_notification fi +if [[ "$MODE" == "check" ]]; then + send_update_notification +fi + if (( ERRORS > 0 )); then exit 1 fi