Files
qwen3-6-lora/data/raw/sanitized/plans/en-entrypoint-sh-quisiera-agregar-drifting-blossom.md
T

47 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Plan: Add `--no-sleep` to `code tunnel` and change `exec` to run tunnel directly
## Context
The user wants two changes in `entrypoint.sh`:
1. Add `--no-sleep` flag to the `code tunnel` invocations at the end of the file.
2. Change the `exec` at line 84 to run `code tunnel` directly instead of re-invoking the entrypoint script.
## Files to modify
- `entrypoint.sh` — lines 8386 and 173177
## Changes
### 1. Replace the exec re-invocation (line 84)
**Before:**
```bash
exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh"
```
**After:**
```bash
exec sudo ${HOME_USER} -c "code tunnel --accept-server-license-terms --no-sleep --name ${VSCODE_TUNNEL_NAME}"
```
### 2. Add `--no-sleep` to the existing `code tunnel` calls (lines 173177)
**Before:**
```bash
if [[ -v VSCODE_TUNNEL_NAME && -n "${VSCODE_TUNNEL_NAME}" ]]; then
sudo su ${HOME_USER} -c "code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}"
else
sudo su ${HOME_USER} -c "code tunnel --accept-server-license-terms"
fi
```
**After:**
```bash
if [[ -v VSCODE_TUNNEL_NAME && -n "${VSCODE_TUNNEL_NAME}" ]]; then
sudo su ${HOME_USER} -c "code tunnel --accept-server-license-terms --no-sleep --name ${VSCODE_TUNNEL_NAME}"
else
sudo su ${HOME_USER} -c "code tunnel --accept-server-license-terms --no-sleep"
fi
```
## Verification
- `grep -- '--no-sleep' entrypoint.sh` should show 3 matches (1 in exec line, 2 in the if/else block).