From f1a93ae19ece47ff2322632ec5c938544aed5206 Mon Sep 17 00:00:00 2001
From: yeti <yeti@alps>
Date: Thu, 17 Apr 2025 16:02:51 +0100
Subject: [PATCH] fix(ssh): image has a start script already

---
 ssh_router.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100644 => 100755 ssh_router.sh

diff --git a/ssh_router.sh b/ssh_router.sh
old mode 100644
new mode 100755
index 84fe133..fcc6a11
--- a/ssh_router.sh
+++ b/ssh_router.sh
@@ -29,7 +29,7 @@ start_container_if_needed() {
       --hostname "$CONTAINER" \
       --label auto-cleanup=true \
       -v "${XDG_RUNTIME_DIR}"/podman/podman.sock:/run/podman/podman.sock \
-      "$IMAGE" sh -c "$TMUX_CMD has-session -t $TMUX_SESSION 2>/dev/null || $TMUX_CMD new-session -s $TMUX_SESSION"
+      "$IMAGE"
   elif ! podman inspect -f '{{.State.Running}}' "$CONTAINER" | grep -q true; then
     log "⚡ Starting existing container $CONTAINER..."
     podman start "$CONTAINER"