[Dbconfig-common-devel] Configuration file don't generate

Andres Maneiro amaneiro at igalia.com
Fri Aug 3 08:34:11 UTC 2007


Hi,

i am having a problem with dbc_generate_* clausules. In my postinst
script i have:


... (some code here)

PKG=phpreport
VERS=1.5

dbc_pgsql_createdb_encoding='UTF8'
dbc_generate_include='template:/etc/dbconfig-common/config_db.php'
dbc_generate_include_args="-o template_infile='/etc/dbconfig-common/config_db_template.php'"

. /usr/share/dbconfig-common/dpkg/postinst.pgsql

... (more code)

dbc_go ${PKG}-${VERS} $@

... (and more)


The "config_db.php" and "config_db_template.php" exist but the
"_DBC_vars_" aren't substitute for their values. When run the postinst
script neither the "package-version.conf" script
in /etc/dbconfig-common/ directory is created. However, the debconf
variables are created. In "config_db*" scripts i have some how ... 


<?
// Database connection
$hostname_db="localhost";
$port_db="5432";
$login_db="_DBC_DBUSER_";
$password_db="_DBC_DBPASS_";
$dbname_db="_DBC_DBNAME_";
?>


In this point... i don't know that it is going. Someone knows?

Thanks,
Andrés
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/dbconfig-common-devel/attachments/20070803/1f5ee7c1/attachment.htm 


More information about the Dbconfig-common-devel mailing list