Link <name>-update into /usr/bin so pct exec finds it without the full path
pct exec runs without a login shell and its PATH may lack /usr/local/bin. setup.sh adds the link on Linux; update.sh adds it to older installs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
be727949c1
commit
c9738358de
8 changed files with 19 additions and 11 deletions
|
|
@ -102,7 +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
|
||||
assert "pct exec 105 -- network-monitor-update" in r.stdout # works because setup.sh links it into /usr/bin
|
||||
# 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