ci: Atomically replace share-svc binary on deploy #5

Merged
drew merged 1 commits from shorten-share-url into master 2026-06-17 21:48:21 -04:00

1 Commits

Author SHA1 Message Date
4f62a567ee ci: Atomically replace share-svc binary on deploy
scp overwrites in place, which fails with ETXTBSY ("text file busy") on
repeat deploys because systemd is executing /usr/local/bin/share-svc.
Copy to a temp path, chmod, then mv it over the destination so rename(2)
swaps the dir entry without touching the busy inode.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 01:47:36 +00:00