This file is indexed.

postrm is in freeradius-config 3.0.16+dfsg-1ubuntu3.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
# vim:ts=2:sw=2:et

set -e

case "$1" in
  purge)
    # Remove dangling links from sites-enabled.
    for link in /etc/freeradius/sites-enabled/* \
                /etc/freeradius/3.0/sites-enabled/*; do
      if [ -L "$link" ] && [ ! -e "$link" ]; then
        rm -f "$link"
      fi
    done

    # Remove dangling links from mods-enabled.
    for link in /etc/freeradius/mods-enabled/* \
                /etc/freeradius/3.0/mods-enabled/*; do
      if [ -L "$link" ] && [ ! -e "$link" ]; then
        rm -f "$link"
      fi
    done

    for file in /etc/freeradius/3.0/certs/server.pem \
                /etc/freeradius/3.0/certs/server.key \
                /etc/freeradius/3.0/certs/ca.pem \
                /etc/freeradius/3.0/certs/random \
                /etc/freeradius/3.0/certs/dh \
                /etc/freeradius/certs/server.pem \
                /etc/freeradius/certs/server.key \
                /etc/freeradius/certs/ca.pem \
                /etc/freeradius/certs/random \
                /etc/freeradius/certs/dh; do
      rm -f "$file"
    done

    # rmdir fails when called on a directory which does not exist
    if [ -d /etc/freeradius ]; then
      rmdir --ignore-fail-on-non-empty /etc/freeradius
    fi
    ;;
esac



exit 0