Repository navigation
Ship /etc/sendspin-cli.conf in the Linux packages and document configuring after install - #130
Merged
chrisuthe merged 2 commits intoNov 19, 2026
Conversation
Installed from the fully commented example, so it changes nothing until edited; deb conffile, rpm %config(noreplace) and Arch backup keep edits across upgrades.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After installing the
.deb,.rpmor Arch package, the docs said to configure/etc/sendspin-cli.conffirst, but the file didn't exist and the only path given for the example was the tarball's/usr/local/share/doc/....Changes
/etc/sendspin-cli.conf(0644,config|noreplace: deb conffile, rpm%config(noreplace), Archbackup). It changes nothing until edited, and the package still doesn't enable or start the unit. The example's header line now reads correctly both as the installed file and as the doc copy.assert_linux_packages.sh: expects the new file and checks that each format marks it as config.test_linux_packages.sh: checks after install that the file exists, is fully commented and is 0644. It then edits the file, reinstalls, and checks the edit survived with no prompt and no.rpmnew/.pacnew/.dpkg-*left behind. Removal checks follow each distro: debremovekeeps the file andpurgedeletes it; rpm and pacman delete it when unmodified.-l→sudoedit /etc/sendspin-cli.conf→enable --now, says upgrades keep your edits, and links to Configuration, Pairing and the user unit. The README snippet gets a configure step. Configuration and Running-as-a-Service give the/usr/share/docpath alongside/usr/local.Verified locally with podman on packages built from a stand-in binary: the assert passes, and the install/reinstall/remove run passes on trixie, Ubuntu 24.04, Fedora and Arch, with bookworm still refusing the deb.
Compatibility
Nothing breaks for CLI users: no flags, config keys, socket protocol, state format or exit codes change.
There's one visible packaging change, for anyone who created
/etc/sendspin-cli.confby hand (or kept it from a tarball install) before installing this package. Their file is always kept, but:N, keeps the existing file. A non-interactive install with no tty fails at that prompt unless it passes-o Dpkg::Options::=--force-confold./etc/sendspin-cli.conf.rpmnew./etc/sendspin-cli.conf.pacnew.Installation.md documents this. Upgrading from an older package that didn't own the file behaves the same way as a first install over an existing file.