fix: service restart on upgrade and no-cache headers for SPA assets

- postinst: restart instead of start if service already enabled (upgrade case)
- embed.go: no-cache/no-store on index.html, immutable cache on hashed assets
- Fixes web not refreshing after dpkg upgrade
This commit is contained in:
2026-07-07 23:41:16 -04:00
parent 9cef7173cb
commit a79bb29699
3 changed files with 13 additions and 5 deletions
+5 -2
View File
@@ -35,8 +35,11 @@ EOF
if command -v systemctl > /dev/null 2>&1; then
systemctl daemon-reload 2>/dev/null || true
systemctl enable syncserver.service 2>/dev/null || true
systemctl start syncserver.service 2>/dev/null || true
if systemctl is-enabled --quiet syncserver.service 2>/dev/null; then
systemctl restart syncserver.service 2>/dev/null || true
else
systemctl enable --now syncserver.service 2>/dev/null || true
fi
fi
;;