diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:49:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:49:47 +0000 |
commit | b486f33989b6fa5fd31509219f0c1e55a2dc7db3 (patch) | |
tree | 62b4ab75fb48b8aa9472b4ceee53943d2443ffb2 /debian/freeradius-common.postrm | |
parent | Adding upstream version 3.2.1+dfsg. (diff) | |
download | freeradius-b486f33989b6fa5fd31509219f0c1e55a2dc7db3.tar.xz freeradius-b486f33989b6fa5fd31509219f0c1e55a2dc7db3.zip |
Adding debian version 3.2.1+dfsg-4+deb12u1.debian/3.2.1+dfsg-4+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/freeradius-common.postrm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/freeradius-common.postrm b/debian/freeradius-common.postrm new file mode 100644 index 0000000..e0d1191 --- /dev/null +++ b/debian/freeradius-common.postrm @@ -0,0 +1,26 @@ +#!/bin/sh +# vim:ts=2:sw=2:et + +set -e + +case "$1" in + purge) + # If we haven't managed to remove /etc/freeradius, make + # sure that freerad:freerad doesn't own anything before + # we remove the user and group + test ! -d /etc/freeradius || find /etc/freeradius -user freerad -exec chown --no-dereference root "{}" \; || true + test ! -d /etc/freeradius || find /etc/freeradius -group freerad -exec chgrp --no-dereference root "{}" \; || true + + if [ -x `which deluser` ]; then + deluser --quiet freerad shadow || true + deluser --quiet freerad || true + fi + if [ -x `which delgroup` ]; then + delgroup --quiet freerad || true + fi + ;; +esac + +#DEBHELPER# + +exit 0 |