Use the full path for the update command under pct exec
pct exec runs commands with a minimal PATH that lacks /usr/local/bin, so "pct exec <ctid> -- network-monitor-update" failed with "No such file". The installer summary, README and CLAUDE.md now give /usr/local/bin/<name>-update. The in-container summary and the Settings page no longer suggest sudo where there is none (as root in an LXC). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cb092f2333
commit
35459b6309
6 changed files with 22 additions and 10 deletions
|
|
@ -102,6 +102,7 @@ export -f pct pvesh pveam pvesm sleep id
|
|||
for part in ("INSTALL_MODE=native", "HOST_PORT=80", "LC_ALL=C.UTF-8", "LANG=C.UTF-8", "NETMON_NESTED=1"):
|
||||
assert part in inner, part
|
||||
assert "http://netmon-hub.local (or http://192.168.68.50)" in r.stdout
|
||||
assert "pct exec 105 -- /usr/local/bin/network-monitor-update" in r.stdout # pct exec has no /usr/local/bin in PATH
|
||||
# The pushed script is a complete installer for the same role.
|
||||
text = pushed.read_text()
|
||||
assert "NETMON_ROLE=hub" in text and text.rstrip().endswith('main "$@"')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue