blob: e0d11911a10585ca66e117a5250ccdd09f03d805 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|