From b486f33989b6fa5fd31509219f0c1e55a2dc7db3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:49:47 +0200 Subject: Adding debian version 3.2.1+dfsg-4+deb12u1. Signed-off-by: Daniel Baumann --- debian/freeradius-config.preinst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 debian/freeradius-config.preinst (limited to 'debian/freeradius-config.preinst') diff --git a/debian/freeradius-config.preinst b/debian/freeradius-config.preinst new file mode 100644 index 0000000..0c5e8b7 --- /dev/null +++ b/debian/freeradius-config.preinst @@ -0,0 +1,27 @@ +#!/bin/sh +# vim:ts=2:sw=2:et + +set -e + +case "$1" in + upgrade) + # Delete any symlinks/files which were created in postinst previously. + # These are not covered by conffile handling, so they would otherwise not + # be cleaned up. + for file in /etc/freeradius/certs/ca.pem \ + /etc/freeradius/certs/server.key \ + /etc/freeradius/certs/server.pem \ + /etc/freeradius/sites-enabled/default \ + /etc/freeradius/sites-enabled/inner-tunnel + do + if [ -h "$file" ] + then + rm -f "$file" + fi + done + ;; +esac + +#DEBHELPER# + +exit 0 -- cgit v1.2.3