Files
docs-alpha.jayfield.org/scripts/clients
jensandClaude Sonnet 5 5b286644db Unmount WSD2L840 after sync, but only if this run mounted it
Previously the pull script mounted the Unassigned Device and left it
mounted indefinitely. Now tracks whether it was already mounted before
this run and only unmounts at the end if it wasn't - never disturbs a
mount already in place for some other reason. Handled via an EXIT trap
so it fires on any exit path, not just success.

Found and fixed a real bug testing this: the script cd's into the
mounted directory and never leaves, so the unmount was failing with
"target is busy" (the shell's own cwd still being on the device) until
the cleanup function explicitly cd's out first. Verified both
directions live: already-mounted stays mounted after; not-mounted gets
mounted, used, and cleanly unmounted again.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-26 17:33:58 +02:00
..

Client hosts

Scripts and configs that run on other hosts this project administers — not on alpha.jayfield.org itself — one subdirectory per host, named after it. Each subdirectory's own README.md states that host's exact OS/version, since a script written for one host's conventions generally will not just work unchanged on another (see ../README.md for why this split exists at all).

Hosts

  • vlda-01/ — the home intranet server referenced throughout SYNC-PLAN.md (Unraid). Currently holds the pull side of the alphavlda-01 Gitea backup.