Files
NLnetLabs-krill/debian/scripts/postrm
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

14 lines
342 B
Bash

#!/bin/sh -e
KRILL_CONF="/etc/krill.conf"
case "$1" in
purge)
# Per https://www.debian.org/doc/debian-policy/ch-files.html#behavior
# "configuration files must be preserved when the package is removed, and
# only deleted when the package is purged."
if [ -f ${KRILL_CONF} ]; then
rm ${KRILL_CONF}
fi
;;
esac