added notify to all needed in unraid essentials
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user