mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-17 23:17:42 +02:00
- 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).
17 lines
505 B
Bash
Executable File
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 |