Workflow 16 NFS Watchdog v1.2 working; fix mount points, container names, sudo path
This commit is contained in:
@@ -5,12 +5,13 @@ Per-service gotchas that aren't bugs but will bite you if you forget them.
|
||||
## PlausibleDeniability
|
||||
|
||||
### n8n workflow 16 (NFS Watchdog)
|
||||
- Runs `sudo docker restart` and `sudo bash .../mount-unraid-nfs.sh` over SSH from n8n container
|
||||
- Runs `sudo docker restart` and `sudo /usr/bin/bash .../mount-unraid-nfs.sh` over SSH from n8n container
|
||||
- Requires a NOPASSWD sudoers rule or SSH commands will hang waiting for a password:
|
||||
```
|
||||
truenas_admin ALL=(ALL) NOPASSWD: /usr/bin/docker, /bin/bash /mnt/tank/docker/scripts/mount-unraid-nfs.sh
|
||||
truenas_admin ALL=(ALL) NOPASSWD: /usr/bin/docker, /usr/bin/bash /mnt/tank/docker/scripts/mount-unraid-nfs.sh
|
||||
```
|
||||
Add via `sudo visudo -f /etc/sudoers.d/n8n-watchdog`
|
||||
- **Must use `/usr/bin/bash` not `/bin/bash`** — on TrueNAS SCALE, bash is at `/usr/bin/bash`. The sudoers rule and the workflow command must match exactly or sudo will prompt for a password.
|
||||
- SSH credential in n8n must use key-based auth (see n8n-workflows/README.md for keygen steps)
|
||||
|
||||
### immich-ml
|
||||
|
||||
Reference in New Issue
Block a user