ci: Atomically replace share-svc binary on deploy #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "shorten-share-url"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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>