From 833080739ba47e75c3365c6ef280389414f73fab Mon Sep 17 00:00:00 2001 From: yeti Date: Fri, 18 Apr 2025 04:18:57 +0100 Subject: [PATCH] feat(tmux): provide custom session name --- ssh_router.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssh_router.sh b/ssh_router.sh index 2f99341..5024c03 100755 --- a/ssh_router.sh +++ b/ssh_router.sh @@ -27,7 +27,8 @@ start_container_if_needed() { --hostname "$WORKSPACE" \ --label auto-cleanup=true \ -v "${XDG_RUNTIME_DIR}"/podman/podman.sock:/run/podman/podman.sock \ - "$IMAGE" -- "$TMUX_SESSION" + --entrypoint "/home/$DEV_USER/start.sh" \ + "$IMAGE" "${TMUX_SESSION}" elif ! podman inspect -f '{{.State.Running}}' "$WORKSPACE" | grep -q true; then log "⚡ Starting existing container $WORKSPACE..." podman start "$WORKSPACE" >/dev/null 2>&1