added notify to all needed in unraid essentials

This commit is contained in:
2026-04-09 17:20:09 -04:00
parent d12e034ef1
commit 6cc26c8fb9
11 changed files with 249 additions and 210 deletions
+8 -1
View File
@@ -189,4 +189,11 @@ elif [[ "$LOCAL_KILLED" == true ]]; then
fi
echo "$ICON_TIME Dry Run: $DRY_RUN"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
# Notify based on what happened
if [[ "$LOCAL_KILLED" == true ]] || [[ "$REMOTE_KILLED" == true ]]; then
local_status=$([[ "$LOCAL_KILLED" == true ]] && echo "killed" || echo "clean")
remote_status=$([[ "$REMOTE_KILLED" == true ]] && echo "killed" || echo "clean")
notify "Rsync stopped — local: $local_status remote: $remote_status${#CONTAINERS_RESTARTED[@]} containers recovered" "Rsync Stop" "warning"
fi