<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.14.1">
</HEAD>
<BODY>
Hi,<BR>
<BR>
i am having a problem with dbc_generate_* clausules. In my postinst script i have:<BR>
<BR>
<PRE>
... (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)
</PRE>
<BR>
The "config_db.php" and "config_db_template.php" exist but the "_DBC_<I>vars</I>_" 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 ... <BR>
<BR>
<PRE>
<?
// Database connection
$hostname_db="localhost";
$port_db="5432";
$login_db="_DBC_DBUSER_";
$password_db="_DBC_DBPASS_";
$dbname_db="_DBC_DBNAME_";
?>
</PRE>
In this point... i don't know that it is going. Someone knows?<BR>
<BR>
Thanks,<BR>
Andrés
</BODY>
</HTML>