3 Commits

Author SHA1 Message Date
darroyo 25a31af64c Make ExecStartPre chown non-fatal to prevent service start failures 2026-07-08 17:42:28 -04:00
darroyo 4cc93c7747 fix: self-healing permissions on /var/lib/syncserver
- systemd: add ExecStartPre to chown -R the data dir before every start
- postinst: add chown -R after creating dirs to fix ownership on upgrades

This prevents the service from failing if dirs were created by root or
drifted ownership after a manual run.
2026-07-07 15:41:10 -04:00
darroyo 221aea8b4c refactor: adopt baby-nas Makefile style with inline packaging targets
- Simplify build targets: frontend, build, build-go, build-all, run, package
- Remove scripts/ for packaging (inline in Makefile)
- Add etc/syncserver/config.yaml and lib/systemd/system/ at project root
- build-all produces both amd64 and arm64 binaries
- package target builds .deb inline without external scripts
- VERSION from git tags, commit hash injected via ldflags
2026-07-07 15:18:01 -04:00