[Dbconfig-common-devel] dbconfig and default values
Radu Spineanu
radu at debian.org
Mon Apr 10 19:11:51 UTC 2006
Hi,
sean finney wrote:
> On Mon, Apr 10, 2006 at 08:22:45PM +0300, Radu Spineanu wrote:
>>> basically, you do something like
>>>
>>> dbc_generate_include="perl:$destinationfile"
>>> dbc_generate_include_args="-f template -o template_infile=$srctemplate"
>>>
>> [..]
>>
>> However will dbc_load_include work with this solution ?
>
> i believe so, though an empirical test would be the ultimate judge
> of that :) if it doesn't, send me a link to a copy of the source
> package i can use to debug what's going on.
>
It doesn't seem to work. I created (just for testing, to see if dbconfig
does substitutions) this file:
# local database configuration file:
my db => {
dsn =>
'dbi:mysql:database=_DBC_DBNAME;host=_DBC_DBHOST;port=_DBC_DBPORT',
user => '_DBC_DBUSER',
pass => '_DBC_DBPASS',
},
In the postinst i now have:
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"
dbc_go simba $@
The result however, is that no substitution takes place, the resulting
file is the same as the template.
Radu
More information about the Dbconfig-common-devel
mailing list