The function responsible for setting the "default_dbtype" is:
dbc_set_dbtype_defaults()
like when there is only one supported database installed:
# Only one installed supported dbtype found, let's use it.
if ! echo "$dbc_dbtypes" | grep -q "," ; then dbc_dbtype=$dbc_default_dbtype
fi
but it should NOT define another default database if the dbconf option "database-type" has been "seen" already.
So.. dbconfig-common has this bug and should NOT redefine database-type if it has been already changed (seen) since the package has been installed and configured.
(c)root@tests:~$ echo 'bareos- database- common bareos- database- common/ database- type select mysql' | debconf- set-selections
(c)root@tests:~$ echo 'bareos- database- common bareos- database- common/ database- type seen true' | debconf- set-selections
(c)root@tests:~$ DEBIAN_ FRONTEND= noninteractive dpkg-reconfigure -u bareos- database- common database- common reconfigure 2171. database- common reconfigure 2171. dbtype_ defaults( ) . installed_ dbtype( ) pgsql. installed_ dbtype( ) pgsql. installed_ dbtype( ) mysql. installed_ dbtype( ) mysql. debconf( ) . package_ config( ) . package_ debconf( ) . database- common reconfigure 2171. dbtype_ defaults( ) pgsql.
(config) dbc_go() bareos-
dbc_config() bareos-
dbc_set_
dbc_detect_
_dbc_detect_
dbc_detect_
_dbc_detect_
dbc_register_
dbc_read_
dbc_preseed_
dbc_config() bareos-
dbc_set_
The function responsible for setting the "default_dbtype" is:
dbc_set_ dbtype_ defaults( )
like when there is only one supported database installed:
# Only one installed supported dbtype found, let's use it.
dbc_ dbtype= $dbc_default_ dbtype
if ! echo "$dbc_dbtypes" | grep -q "," ; then
fi
but it should NOT define another default database if the dbconf option "database-type" has been "seen" already.
So.. dbconfig-common has this bug and should NOT redefine database-type if it has been already changed (seen) since the package has been installed and configured.