diff options
author | Jakub Ružička <jakub.ruzicka@nic.cz> | 2023-05-23 12:44:47 +0200 |
---|---|---|
committer | Jakub Ružička <jakub.ruzicka@nic.cz> | 2023-06-22 16:06:26 +0200 |
commit | f4e745dde35f10a8afee78540cf47b0866640447 (patch) | |
tree | f9c309f5b430da1430b47e04198cc2ec24cb273c /distro/pkg/deb/knot-resolver-core.postinst | |
parent | distro/pkg/deb: debian packaging changes for v6 (diff) | |
download | knot-resolver-f4e745dde35f10a8afee78540cf47b0866640447.tar.xz knot-resolver-f4e745dde35f10a8afee78540cf47b0866640447.zip |
distro/pkg/deb: maintainer scripts cleanup
Remove 4 to 5 upgrade scripts and more.
Diffstat (limited to 'distro/pkg/deb/knot-resolver-core.postinst')
-rw-r--r-- | distro/pkg/deb/knot-resolver-core.postinst | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/distro/pkg/deb/knot-resolver-core.postinst b/distro/pkg/deb/knot-resolver-core.postinst index fb2bce2f..a1fcadd2 100644 --- a/distro/pkg/deb/knot-resolver-core.postinst +++ b/distro/pkg/deb/knot-resolver-core.postinst @@ -2,33 +2,10 @@ # SPDX-License-Identifier: GPL-3.0-or-later set -e -# upgrade-4-to-5 -export UPG_DIR=/var/lib/knot-resolver/.upgrade-4-to-5 -if [ -f ${UPG_DIR}/.unfinished ] ; then - rm -f ${UPG_DIR}/.unfinished - kresd -c /usr/lib/knot-resolver/upgrade-4-to-5.lua >/dev/null 2>/dev/null - echo "\n !!! WARNING !!!" - echo "Knot Resolver configuration file requires manual upgrade.\n" - cat ${UPG_DIR}/kresd.conf.net 2>/dev/null -fi - if [ "$1" = "configure" ]; then adduser --quiet --system --group --no-create-home --home /var/cache/knot-resolver knot-resolver fi -# Restart any running kresd instances if the root key is updated. -# Note: if knot-resolver upstream watches this file and reloads it -# upon a change, we can and should remove this trigger. -if [ "$1" = "triggered" ]; then - if [ "$2" = "/usr/share/dns/root.key" ]; then - # use daemon-reload to load any unit changes - systemctl daemon-reload || true - # systemctl of the sub-services is the preferred method to restart - systemctl try-restart 'kresd@*.service' kres-cache-gc.service || true - fi - exit 0 -fi - if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then systemctl daemon-reload || true systemd-tmpfiles --create /usr/lib/tmpfiles.d/knot-resolver.conf |