From 834e2b82f3fae6ab01a8b0fd626b0517e5aa4a8e Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 9 Jan 2026 18:16:59 +0100 Subject: [PATCH] docs: comment doctor switch e2e --- scripts/e2e/doctor-install-switch-docker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/e2e/doctor-install-switch-docker.sh b/scripts/e2e/doctor-install-switch-docker.sh index 086202c81..3c932659b 100755 --- a/scripts/e2e/doctor-install-switch-docker.sh +++ b/scripts/e2e/doctor-install-switch-docker.sh @@ -11,6 +11,7 @@ echo "Running doctor install switch E2E..." docker run --rm -t "$IMAGE_NAME" bash -lc ' set -euo pipefail + # Stub systemd/loginctl so doctor + daemon flows work in Docker. export PATH="/tmp/clawdbot-bin:$PATH" mkdir -p /tmp/clawdbot-bin @@ -65,6 +66,7 @@ exit 0 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_bin="/tmp/npm-prefix/bin/clawdbot" @@ -88,6 +90,8 @@ LOGINCTL fi } + # Each flow: install service with one variant, run doctor from the other, + # and verify ExecStart entrypoint switches accordingly. run_flow() { local name="$1" local install_cmd="$2"