[Dbconfig-common-devel] dbconfig and default values
Radu Spineanu
radu at debian.org
Mon Apr 10 15:52:29 UTC 2006
Hi
I am trying to setup some default values for dbconfig, however they are
not taken into consideration:
------------
## Source debconf library
. /usr/share/debconf/confmodule
dbc_first_version="0.6.1-1"
dbc_load_include="perl:/etc/simba/simba-db.cfg"
dbc_dbserver="localhost"
dbc_dbport="3306"
# source dbconfig-common stuff
. /usr/share/dbconfig-common/dpkg/config.mysql
dbc_go simba $@
------------
The program i am trying to package uses perl dbi, and the connection
needs values for port and host:
------------
db => {
dsn => 'dbi:mysql:database=mirrors_db;host=localhost;port=3306',
user => 'mirrors',
pass => 'mirrors',
},
------------
On a side note, do you any examples about using dbc_generate_include
with templates ?
Thanks,
Radu Spineanu
More information about the Dbconfig-common-devel
mailing list