~julian-edwards/maas/packaging.precise.sru

« back to all changes in this revision

Viewing changes to debian/maas-region-controller.config

  • Committer: Tarmac
  • Author(s): Andres Rodriguez
  • Date: 2012-10-11 18:56:39 UTC
  • mfrom: (132.1.2 quantal)
  • Revision ID: tarmac-20121011185639-em6dr1lx9anr2tzd
[r=andreserl][bug=][author=andreserl] Handle creation of user/group in maas-common.
debian/maas-region-controller.config: Always source dbconfig scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        fi
17
17
}
18
18
 
 
19
# source dbconfig-common shell library, and call the hook function
 
20
if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
 
21
        . /usr/share/dbconfig-common/dpkg/config.pgsql
 
22
fi
19
23
 
20
24
if ([ "$1" = "configure" ] && [ -z "$2" ]); then
21
25
        # Hide maas/dbconfig-install question by setting default.
22
26
        set_question maas-region-controller/dbconfig-install true
23
27
        set_question maas-region-controller/pgsql/app-pass ""
24
28
 
25
 
        # source dbconfig-common shell library, and call the hook function
26
 
        if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
27
 
                . /usr/share/dbconfig-common/dpkg/config.pgsql
28
 
 
29
 
                dbc_dbname="maasdb"
30
 
                dbc_dbuser="maas"
31
 
                dbc_remove="true"
32
 
 
33
 
                dbc_go maas-region-controller $@
34
 
        fi
 
29
        dbc_dbname="maasdb"
 
30
        dbc_dbuser="maas"
 
31
        dbc_remove="true"
 
32
 
 
33
        dbc_go maas-region-controller $@
35
34
 
36
35
elif [ "$1" = "reconfigure" ] || [ -n "$DEBCONF_RECONFIGURE" ]; then
37
36
        db_get maas/default-maas-url || true