V14
This commit is contained in:
1 parent
55f05fe0b9
commit
a4ccbd2e34
1 file changed
+8
-1
+8
-1
@@ -125,7 +125,6 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
send_update_notification() {
|
send_update_notification() {
|
||||||
[[ "$MODE" == "update" ]] || return 0
|
|
||||||
[[ "$NOTIFY_ENABLED" == "yes" ]] || return 0
|
[[ "$NOTIFY_ENABLED" == "yes" ]] || return 0
|
||||||
|
|
||||||
if ! ensure_notification_setup; then
|
if ! ensure_notification_setup; then
|
||||||
@@ -142,7 +141,11 @@ send_update_notification() {
|
|||||||
status="FEHLER"
|
status="FEHLER"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$MODE" == "check" ]]; then
|
||||||
|
title="Proxmox Update-Check - $status"
|
||||||
|
else
|
||||||
title="Proxmox Updater - $status"
|
title="Proxmox Updater - $status"
|
||||||
|
fi
|
||||||
|
|
||||||
message="Proxmox Guest Updater
|
message="Proxmox Guest Updater
|
||||||
Host: $(hostname)
|
Host: $(hostname)
|
||||||
@@ -1216,6 +1219,10 @@ if [[ "$MODE" == "update" ]]; then
|
|||||||
send_update_notification
|
send_update_notification
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$MODE" == "check" ]]; then
|
||||||
|
send_update_notification
|
||||||
|
fi
|
||||||
|
|
||||||
if (( ERRORS > 0 )); then
|
if (( ERRORS > 0 )); then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user