Files
honk/install/package-before-remove.sh
Zakk 6bfd6664b1 feat(release): ship deb, rpm and Arch packages (#417)
* feat(release): ship deb, rpm and Arch packages

* feat(release): replace the daeuniverse repository honk package

* fix(release): keep the service on deconfigure and map every hyphen

* feat(release): stop dae when honk-core starts and align the unit with dae
2026-11-01 00:15:35 +11:00

12 lines
427 B
Bash
Executable File

#!/bin/sh
set -e
# Stop and disable the service on removal, not on upgrade: dpkg passes `upgrade`
# (or `deconfigure` while another package replaces a dependency), rpm the count of
# versions left (1 or more), pacman runs this only on removal.
case $1 in
upgrade | failed-upgrade | deconfigure | [1-9]) exit 0 ;;
esac
if [ -d /run/systemd/system ]; then
systemctl --no-reload disable --now honk-core.service || true
fi