This file is indexed.

config is in maas-rack-controller 2.4.0~beta2-6865-gec43e47e6-0ubuntu1.

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
#!/bin/sh

set -e

. /usr/share/debconf/confmodule
db_version 2.0

# Only ask for new installations and reconfiguring.
# XXX Fix to not ask when installing from the CD.
if ([ "$1" = "configure" ] && [ -z "$2" ]); then

    db_get maas-rack-controller/maas-url || true
    if [ -z "$RET" ]; then
        # Attempt to pre-populate if installing on the region controller.
        if [ -f /usr/sbin/maas-region ]; then
            url=$(maas-region local_config_get --maas-url --plain)
            # If the URL doesn't end in /MAAS then add it. This helps upgrades from
            # precise for which the URL didn't contain /MAAS, which is now required
            if ! echo $url | grep -qs "/MAAS$"; then
                url="${url}/MAAS"
            fi
            db_set maas-rack-controller/maas-url "$url"
        else
            # Will only get here if dbconf value not already set, or
            # /etc/maas/regiond.conf doesn't exist.
            db_input medium maas-rack-controller/maas-url || true
            db_go
        fi
    fi
fi

if [ "$1" = "reconfigure" ]; then
    db_input high maas-rack-controller/maas-url || true
    db_go
fi