mirror of
https://github.com/daeuniverse/honk.git
synced 2026-12-06 16:01:20 +00:00
* 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
12 lines
427 B
Bash
Executable File
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
|