|
54 | 54 | git_cli="$git_root/openclaw.mjs" |
55 | 55 |
|
56 | 56 | package_version="$(node -p "require(\"$npm_root/package.json\").version")" |
| 57 | +update_doctor_env="OPENCLAW_UPDATE_IN_PROGRESS=1" |
| 58 | +update_doctor_env+=" OPENCLAW_UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE=1" |
| 59 | +update_doctor_env+=" OPENCLAW_UPDATE_PARENT_SUPPORTS_GATEWAY_RESTART=1" |
| 60 | +update_doctor_env+=" OPENCLAW_UPDATE_PARENT_ALLOWS_GATEWAY_SERVICE_REPAIR=1" |
| 61 | +update_doctor_env+=" OPENCLAW_UPDATE_PARENT_ALLOWS_GATEWAY_ACTIVATION=0" |
57 | 62 | is_legacy_package_acceptance_compat() { |
58 | 63 | [ "$(node scripts/e2e/lib/package-compat.mjs "$1")" = "1" ] |
59 | 64 | } |
@@ -162,14 +167,14 @@ run_flow \ |
162 | 167 | "npm-to-git" \ |
163 | 168 | "$npm_bin daemon install --force" \ |
164 | 169 | "$npm_entry" \ |
165 | | - "OPENCLAW_UPDATE_IN_PROGRESS=1 node $git_cli doctor --repair --force --yes --non-interactive" \ |
| 170 | + "$update_doctor_env node $git_cli doctor --repair --force --yes --non-interactive" \ |
166 | 171 | "$git_entry" |
167 | 172 |
|
168 | 173 | run_flow \ |
169 | 174 | "git-to-npm" \ |
170 | 175 | "node $git_cli daemon install --force" \ |
171 | 176 | "$git_entry" \ |
172 | | - "OPENCLAW_UPDATE_IN_PROGRESS=1 $npm_bin doctor --repair --force --yes --non-interactive" \ |
| 177 | + "$update_doctor_env $npm_bin doctor --repair --force --yes --non-interactive" \ |
173 | 178 | "$npm_entry" |
174 | 179 |
|
175 | 180 | run_proxy_env_flow() { |
@@ -199,7 +204,12 @@ run_proxy_env_flow() { |
199 | 204 | printf "%s\n" "Environment=HTTP_PROXY=http://stale-proxy.local:7890" |
200 | 205 | printf "%s\n" "Environment=HTTPS_PROXY=https://stale-proxy.local:7890" |
201 | 206 | } >>"$unit_path" |
202 | | - if ! openclaw_e2e_maybe_timeout "$command_timeout" env OPENCLAW_UPDATE_IN_PROGRESS=1 \ |
| 207 | + if ! openclaw_e2e_maybe_timeout "$command_timeout" env \ |
| 208 | + OPENCLAW_UPDATE_IN_PROGRESS=1 \ |
| 209 | + OPENCLAW_UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE=1 \ |
| 210 | + OPENCLAW_UPDATE_PARENT_SUPPORTS_GATEWAY_RESTART=1 \ |
| 211 | + OPENCLAW_UPDATE_PARENT_ALLOWS_GATEWAY_SERVICE_REPAIR=1 \ |
| 212 | + OPENCLAW_UPDATE_PARENT_ALLOWS_GATEWAY_ACTIVATION=0 \ |
203 | 213 | node "$git_cli" doctor --repair --force --yes --non-interactive >"$doctor_log" 2>&1; then |
204 | 214 | openclaw_e2e_print_log "$doctor_log" |
205 | 215 | exit 1 |
|
0 commit comments