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
|
|
@ -108,7 +108,7 @@ Run the same commands as above on the node, as root. The installer:
|
|||
- named `netmon-hub` or `netmon-probe-<node>`
|
||||
2. **Starts it** and waits for network.
|
||||
3. **Copies the installer in** and runs it in native mode. It installs Python, sets up ping and creates the systemd service.
|
||||
4. **Prints the container's IP** and the `pct exec` commands to update it, read its logs and edit its settings.
|
||||
4. **Prints the container's IP** and the `pct exec` commands to update it, read its logs and edit its settings. `pct exec` runs commands with a minimal PATH that doesn't include `/usr/local/bin`, so the update command needs its full path: `pct exec <ctid> -- /usr/local/bin/network-monitor-update`. Inside the container (`pct enter <ctid>`), plain `network-monitor-update` works.
|
||||
|
||||
To change the defaults, set these before `bash`:
|
||||
|
||||
|
|
@ -169,7 +169,8 @@ read -rsp 'Gitea token: ' GIT_TOKEN && export GIT_TOKEN && curl -fsSL -H "Author
|
|||
```bash
|
||||
git push # from your machine
|
||||
docker exec network-monitor update # hub, Docker
|
||||
sudo network-monitor-update # hub, native Linux (macOS: network-monitor-update)
|
||||
sudo network-monitor-update # hub, native Linux (no sudo as root; macOS: network-monitor-update)
|
||||
pct exec <ctid> -- /usr/local/bin/network-monitor-update # hub in a Proxmox LXC, from the node
|
||||
docker exec network-probe update # probe, Docker
|
||||
sudo network-probe-update # probe, native Linux (macOS: network-probe-update)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue