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