This file is indexed.

config is in collectd-core 5.5.1-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
#! /bin/sh
# config script for collectd
#
# see: dh_installdebconf(1)

set -e

# summary of how this script can be called:
#        * <preconfigure> `configure' <installed-version>
#        * <postinst> `configure' <old-version>
#        * <reconfigure> `reconfigure' <installed-version>

. /usr/share/debconf/confmodule

case "$1" in
    configure)
        db_set collectd/auto-migrate-3-4 false

        if dpkg --compare-versions "$2" lt-nl "4.0.0~"; then
            if perl -e '1' 2> /dev/null && rrdtool > /dev/null 2>&1; then
                db_input high collectd/auto-migrate-3-4 || true
                db_go || true
            else
                db_input high collectd/migration-3-4 || true
                db_go || true
            fi
        fi

        db_set collectd/auto-migrate-4-5 false

        if dpkg --compare-versions "$2" lt-nl "5.0.0~"; then
            if perl -e '1' 2> /dev/null && rrdtool > /dev/null 2>&1; then
                db_input high collectd/auto-migrate-4-5 || true
                db_go || true
            else
                db_input high collectd/migration-4-5 || true
                db_go || true
            fi
        fi
    ;;

    reconfigure)
    ;;

    *)
        echo "config called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

db_stop

exit 0