From aeb8477747ae7817a17017ef992b4f91e3b4686c Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Sun, 16 Jul 2023 17:46:07 -0400 Subject: [PATCH] package script --- package/debian/veilid-server/DEBIAN/postinst | 4 +++- package/debian/veilid-server/DEBIAN/prerm | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package/debian/veilid-server/DEBIAN/postinst b/package/debian/veilid-server/DEBIAN/postinst index e51b5d03..41253ed6 100755 --- a/package/debian/veilid-server/DEBIAN/postinst +++ b/package/debian/veilid-server/DEBIAN/postinst @@ -26,6 +26,8 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true - echo "Veilid headless node is now installed. To start the service run: systemctl enable --now veilid-server.service" + echo "Veilid headless node is now installed. To enable the service run: systemctl enable --now veilid-server.service" + # Restart if it is enabled already + deb-systemd-invoke restart 'veilid-server.service' >/dev/null || true fi fi diff --git a/package/debian/veilid-server/DEBIAN/prerm b/package/debian/veilid-server/DEBIAN/prerm index 9355ce1a..315b3f77 100755 --- a/package/debian/veilid-server/DEBIAN/prerm +++ b/package/debian/veilid-server/DEBIAN/prerm @@ -4,3 +4,4 @@ set -e if [ -d /run/systemd/system ] && [ "$1" = remove ]; then deb-systemd-invoke stop 'veilid-server.service' >/dev/null || true fi +