V14
This commit is contained in:
1 parent
55f05fe0b9
commit
a4ccbd2e34
1 file changed
+9
-2
+9
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user