This file is indexed.

postinst is in freeradius-postgresql 2.2.8+dfsg-0.1build2.

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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#! /bin/sh

set -e

update_fs_from_statoverride() {
  # I wish a simple dpkg-statoverride --update $file just did
  # the right thing, but it doesn't, so we have to do it manually.
  type=$1
  user=$2
  group=$3
  mode=$4
  file=$5
  if [ -n "$type" -a -n "$group" -a -n "$mode" -a -n "$file" ]; then
    if [ "$(find $file -maxdepth 0 -type $type -group $group -perm $mode)" = "" -a -$type $file ]; then
      chgrp $group $file
      chmod $mode $file
    fi
  fi
}

case "$1" in
  configure)
        for file in /etc/freeradius/sql/postgresql/cisco_h323_db_schema.sql \
          /etc/freeradius/sql/postgresql/counter.conf \
          /etc/freeradius/sql/postgresql/dialup.conf \
          /etc/freeradius/sql/postgresql/ippool.conf \
          /etc/freeradius/sql/postgresql/ippool.sql \
          /etc/freeradius/sql/postgresql/nas.sql \
          /etc/freeradius/sql/postgresql/schema.sql \
          /etc/freeradius/sql/postgresql/update_radacct_group_trigger.sql \
          /etc/freeradius/sql/postgresql/voip-postpaid.conf
        do
          set +e
          so=$(dpkg-statoverride --list $file)
          ret=$?
          set -e
          if [ -z "$2" ]; then
            if [ $ret != 0 ]; then
              dpkg-statoverride --add --update root freerad 0640 $file
            fi
          else
            update_fs_from_statoverride f $so
          fi
        done

        for dir in /etc/freeradius/sql \
          /etc/freeradius/sql/postgresql
        do
          set +e
          so=$(dpkg-statoverride --list $dir)
          ret=$?
          set -e
          if [ -z "$2" ]; then
            if [ $ret != 0 ]; then
              dpkg-statoverride --add --update root freerad 2751 $dir
            fi
          else
            update_fs_from_statoverride d $so
          fi
        done

        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
          invoke-rc.d freeradius force-reload
        else
          /etc/init.d/freeradius force-reload
        fi
	;;
esac



exit 0