[Dbconfig-common-devel] dbconfig and default values

Radu Spineanu radu at debian.org
Tue Apr 11 12:15:45 UTC 2006


In case someone is interested, this seems to be a working solution:


# source debconf stuff
. /usr/share/debconf/confmodule
db_version 2.0
# source dbconfig-common stuff
. /usr/share/dbconfig-common/dpkg/postinst.mysql
dbc_first_version="0.6.1-1"
dbc_generate_include="perl:/etc/simba/simba-db.cfg"
dbc_generate_include_owner="root:www-data"
dbc_generate_include_perms="0640"
dbc_generate_include_args="-f template -o
template_infile=/usr/share/doc/simba/simba-cfg.template"

if [ "$1" = "configure" ] && [ -z "$2" ]; then
    db_set simba/remote/host "localhost"
    db_set simba/remote/port "3306"
fi

dbc_go simba $@


Radu



More information about the Dbconfig-common-devel mailing list