This file is indexed.

config is in firebird2.1-classic 2.1.4.18393-0.ds2-6build1.

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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

set -u

if [ -n "${DEBIAN_FIREBIRD_DEBUG:-}" ]; then
    set -x
fi

VER="2.1"
PASSWORD_FILE=/etc/firebird/$VER/SYSDBA.password

# find server flavour
if basename $0 | grep -q -- '-classic.config$'; then
    FB_FLAVOUR=classic
else
    FB_FLAVOUR=super
    DEFAULT=/etc/default/firebird$VER-super
fi


ACTION=$1

case "$ACTION" in
    configure|reconfigure)

    if [ "$FB_FLAVOUR" = classic ]; then
        if grep -q ^gds_db /etc/inetd.conf; then
            enabled=true
        else
            enabled=false
        fi
    else
        if [ -f $DEFAULT ]; then
            . $DEFAULT
            if [ "${ENABLE_SUPER_SERVER:-}" = yes ]; then
                enabled=true
            else
                enabled=false
            fi
        else
            enabled=false
        fi
    fi

    db_set shared/firebird/enabled $enabled || true

    db_input low shared/firebird/enabled || true
    db_go || true

    db_get shared/firebird/enabled || true

    # ask the password question
    if [ "${RET:-}" = true ]; then
        PASSWORD_FILE="/etc/firebird/$VER/SYSDBA.password"
        if [ -e $PASSWORD_FILE ]; then
            . $PASSWORD_FILE
            if [ -n "${ISC_PASSWORD:-}" ]; then
                # upgrade or reconfiguration
                QUESTION="shared/firebird/sysdba_password/upgrade_reconfigure"
                db_set "$QUESTION" "$ISC_PASSWORD"
                PRIORITY="low"
            else
                # new install
                QUESTION="shared/firebird/sysdba_password/first_install"
                PRIORITY="high"
            fi
        else
            QUESTION="shared/firebird/sysdba_password/first_install"
            PRIORITY="high"
        fi

        db_subst shared/firebird/title FB_VER "$VER"
        db_settitle shared/firebird/title

        db_subst "$QUESTION" FB_VER "$VER"
        db_input "$PRIORITY" "$QUESTION" || true
        db_go

        # store the answer into hidden template question
        db_get "$QUESTION"
        db_set shared/firebird/sysdba_password/new_password "$RET"

        # and remove it from the asked question
        db_reset "$QUESTION"
    fi

    ;;
esac

db_stop

exit 0

# vi: set sw=4 ts=8 filetype=sh sts=4 :