[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Conditional entries with dbconfig-common



(threading manually, hope that works)

Quoting Gunnar Wolf:

>| $databases['default']['default'] = $dbs['_DBC_DBTYPE_'];
> \------------------------------------------------------------
>
> But of course, having this in what should just be a _configuration
> file_ seems confusing and downright stupid to me :-/

FWIW this is what we're using in request-tracker4:
 http://anonscm.debian.org/gitweb/?p=pkg-request-tracker/request-tracker4.git;a=blob_plain;f=debian/scripts/dbconfig.template

So the generated configuration file ends up with an if clause comparing
seemingly constant strings. It's not very clean either but it's the best
I could come up with.

Hope this helps,
-- 
Niko


Reply to: