You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correct common.sh path and use config/ folder in doctor hints
After the config-folder PR moved common.sh from
deploy/aws-hypervisor/scripts/ to deploy/, doctor.sh referenced the
old path and would fail on startup. Fix the source path and replace
msg_err with an inline printf so the summary works even when
common.sh fails to load.
All fix hints now point to the central config/ folder instead of the
deep canonical paths, consistent with the config-folder workflow.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Strict flags only after common.sh: it expands variables that may be unset.
@@ -164,7 +166,7 @@ if [[ -n "${SSH_PUBLIC_KEY:-}" ]]; then
164
166
check_pass "SSH public key found (SSH_PUBLIC_KEY=${SSH_PUBLIC_KEY})"
165
167
else
166
168
check_fail "SSH_PUBLIC_KEY in instance.env points to a missing file: ${SSH_PUBLIC_KEY}" \
167
-
"fix the path in ${INSTANCE_ENV}, or generate a key: 'ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519'"
169
+
"fix the path in ${CONFIG_DIR}/instance.env, or generate a key: 'ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519'"
168
170
fi
169
171
elif [[ -f"${HOME}/.ssh/id_ed25519.pub" ]];then
170
172
check_pass "SSH public key found (~/.ssh/id_ed25519.pub)"
@@ -233,7 +235,7 @@ fi
233
235
section "AWS hypervisor (instance.env)"
234
236
235
237
if [[ !-f"${INSTANCE_ENV}" ]];then
236
-
check_note "section skipped: instance.env not found (only needed for the AWS hypervisor flow) - to use it: 'cp ${INSTANCE_ENV}.template ${INSTANCE_ENV}' and edit"
238
+
check_note "section skipped: instance.env not found (only needed for the AWS hypervisor flow) - to use it: 'cp ${CONFIG_DIR}/instance.env.template ${CONFIG_DIR}/instance.env' and edit"
237
239
else
238
240
# set +u: the deployment scripts never source instance.env under nounset,
239
241
# so the probe must not be stricter than real usage
@@ -242,14 +244,14 @@ else
242
244
check_pass "instance.env sources cleanly"
243
245
else
244
246
check_fail "instance.env does not source cleanly: ${SOURCE_ERR}" \
245
-
"fix the shell syntax in ${INSTANCE_ENV}"
247
+
"fix the shell syntax in ${CONFIG_DIR}/instance.env"
246
248
fi
247
249
248
250
if [[ -n"${REGION:-}"&&-n"${AWS_PROFILE:-}" ]];then
249
251
check_pass "REGION (${REGION}) and AWS_PROFILE (${AWS_PROFILE}) are set"
250
252
else
251
253
check_fail "REGION and/or AWS_PROFILE not set by instance.env" \
252
-
"set REGION and AWS_PROFILE in ${INSTANCE_ENV} (see instance.env.template)"
254
+
"set REGION and AWS_PROFILE in ${CONFIG_DIR}/instance.env (see ${CONFIG_DIR}/instance.env.template)"
0 commit comments