docs: comment doctor switch e2e
This commit is contained in:
@@ -11,6 +11,7 @@ echo "Running doctor install switch E2E..."
|
|||||||
docker run --rm -t "$IMAGE_NAME" bash -lc '
|
docker run --rm -t "$IMAGE_NAME" bash -lc '
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Stub systemd/loginctl so doctor + daemon flows work in Docker.
|
||||||
export PATH="/tmp/clawdbot-bin:$PATH"
|
export PATH="/tmp/clawdbot-bin:$PATH"
|
||||||
mkdir -p /tmp/clawdbot-bin
|
mkdir -p /tmp/clawdbot-bin
|
||||||
|
|
||||||
@@ -65,6 +66,7 @@ exit 0
|
|||||||
LOGINCTL
|
LOGINCTL
|
||||||
chmod +x /tmp/clawdbot-bin/loginctl
|
chmod +x /tmp/clawdbot-bin/loginctl
|
||||||
|
|
||||||
|
# Install the npm-global variant from the local /app source.
|
||||||
npm install -g --prefix /tmp/npm-prefix /app
|
npm install -g --prefix /tmp/npm-prefix /app
|
||||||
|
|
||||||
npm_bin="/tmp/npm-prefix/bin/clawdbot"
|
npm_bin="/tmp/npm-prefix/bin/clawdbot"
|
||||||
@@ -88,6 +90,8 @@ LOGINCTL
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Each flow: install service with one variant, run doctor from the other,
|
||||||
|
# and verify ExecStart entrypoint switches accordingly.
|
||||||
run_flow() {
|
run_flow() {
|
||||||
local name="$1"
|
local name="$1"
|
||||||
local install_cmd="$2"
|
local install_cmd="$2"
|
||||||
|
|||||||
Reference in New Issue
Block a user