Revert "feat: add CONTAINER_CONNECTION=my_remote environment variable"
This reverts commit bd9559ad79b55fe9069caa7505a82658357993de.
This commit is contained in:
parent
bd9559ad79
commit
d414a61c62
@ -181,7 +181,7 @@ rw)
|
||||
log INFO "$PERSON attaching to workspace '$WORKSPACE'"
|
||||
|
||||
# Try to attach to session; if it fails, create and attach
|
||||
if ! podman exec -it -e TERM="$TERM" -e CONTAINER_CONNECTION=my-remote --user "$DEV_USER" "$WORKSPACE" \
|
||||
if ! podman exec -it -e TERM="$TERM" --user "$DEV_USER" "$WORKSPACE" \
|
||||
tmux attach -t "$TMUX_SESSION"; then
|
||||
log WARN "tmux session not found, creating new session"
|
||||
podman exec -it --user "$DEV_USER" "$WORKSPACE" \
|
||||
@ -198,7 +198,7 @@ rw)
|
||||
ro)
|
||||
if podman inspect -f '{{.State.Running}}' "$WORKSPACE" 2>/dev/null | grep -q true; then
|
||||
log INFO "$PERSON viewing workspace '$WORKSPACE'"
|
||||
podman exec -it -e TERM="$TERM" -e CONTAINER_CONNECTION=my-remote --user "$DEV_USER" "$WORKSPACE" \
|
||||
podman exec -it -e TERM="$TERM" --user "$DEV_USER" "$WORKSPACE" \
|
||||
tmux attach -r -t "$TMUX_SESSION"
|
||||
log INFO "$PERSON stopped viewing '$WORKSPACE'"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user