fix(server): serve updated static assets dynamically and restart stale server on .deb upgrade
CI / build (push) Waiting to run

This commit is contained in:
Schwitzz
2026-11-02 14:08:46 -06:00
parent b01073eac0
commit 8b208affc4
2 changed files with 19 additions and 1 deletions
+3
View File
@@ -148,6 +148,9 @@ fi
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
fi
# Stop any stale background server from a previous package build so the next
# launch or systemd restart serves the updated /opt/pubscript bundle cleanly.
pkill -f "/opt/pubscript/server/dist/server.mjs" >/dev/null 2>&1 || true
exit 0
EOF
chmod 0755 "$STAGE_DIR/DEBIAN/postinst"