mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
Build and test RPMs for CentOS 7 & 8: - Add a new RPM packaging workflow. We should probably merge this into the main packaging workflow. - Move packaging scripts under pkg - Move the generated Debian changelog under target/debian/. - Inform the user what the `routinator-init` script is trying to do, useful in case it fails (e.g. because it can't find a way to become the 'routinator' user). - Don't run routinator-init as sudo when root. - Set cargo-deb search paths correctly for new pkg/ directory structure.
16 lines
370 B
Bash
16 lines
370 B
Bash
#!/bin/sh -e
|
|
|
|
ROUTINATOR_ETC="/etc/routinator"
|
|
|
|
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 [ -d ${ROUTINATOR_ETC} ]; then
|
|
rm -R ${ROUTINATOR_ETC}
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER# |