Create Debian package for beszel-agent (#497)

* Add Debian package to build

Signed-off-by: Daniel Lo Nigro <git@d.sb>

* Fix Lintian issues

Signed-off-by: Daniel Lo Nigro <git@d.sb>

* - Add prerm script to stop and disable service
- Add security/sandboxing options to systemd unit

Signed-off-by: Daniel Lo Nigro <git@d.sb>

---------

Signed-off-by: Daniel Lo Nigro <git@d.sb>
This commit is contained in:
Daniel Lo Nigro
2025-02-03 16:08:01 -08:00
committed by GitHub
parent 5a8e8c1512
commit e689f547ef
9 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -e
SERVICE=beszel-agent
deb-systemd-invoke stop "$SERVICE".service
if [ "$1" = "remove" ]; then
deb-systemd-helper purge "$SERVICE".service
fi