Files
NLnetLabs-krill/debian/scripts/prerm
T
Ximon Eighteen 8431642a4a Create Krill DEB and RPM packages via GH actions:
- Assumes that the target system has ca-certificates installed already.
  - Vendor OpenSSL to support Ubuntu 16.04 which only has OpenSSL 1.0.0.
  - Use GH caching to avoid repeat compilation of unchanging cargo deb and krill dependencies.
  - Build in Docker containers as GH runners have too many non-standard packages and libraries pre-installed.
  - Sanity check the created DEB in targeted O/S versions via LXC/LXD containers (for systemd support).
2020-06-23 12:55:17 +02:00

17 lines
505 B
Bash
Executable File

#!/bin/sh -e
# lintian warns maintainer-script-calls-systemctl.
# at https://lintian.debian.org/tags/maintainer-script-calls-systemctl.html it
# explains that deb-systemd-helper should be used instead, but we are not using
# debhelper, we are using cargo-deb, so we have to manage systemd ourselves.
uninstall_service_unit() {
if systemctl is-enabled krill.service >/dev/null; then
systemctl disable --now krill.service
fi
}
case "$1" in
remove|purge)
uninstall_service_unit
;;
esac