Linux installer: catch paths the netx user cannot enter; --grant-access.

Installing under /root left systemd failing with 203/EXEC and empty logs.
The installer now checks that the service user can enter the program and
data dirs; blocked parents are granted traverse-only access (setfacl
u:netx:x, else chmod o+x) with --grant-access or after asking, otherwise
it stops with the exact command. Start failures show the supervisor log
or journalctl when api.log is empty. README: /root installs and UME with
self-signed certificates (NETX_ALLOW_INSECURE_DEFAULTS).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
oliver 2026-10-14 15:28:21 +08:00
parent 78db39eabe
commit b0b64ba07d
4 changed files with 126 additions and 4 deletions

View file

@ -72,7 +72,7 @@ wait_healthy() {
return 0
fi
err "$(t "NetX 未在 ${timeout} 秒内就绪" "NetX not healthy after ${timeout}s"): $(health_url)"
tail -n 30 "${NETX_LOG_DIR}/api.log" 2>/dev/null >&2 || true
show_start_failure "${NETX_DATA}"
return 1
}