Christian Perrier said the following on 05/04/2006 10:03 PM: > IIRC, the magic is done by the db_subst command of debconf. See the > SUBST command of the debconf protocol.
Ah, now I think I understand what you're saying. I had originally setup the apache restart modeled on phpmyadmin, which uses a single debconf question repeated multiple times with substitution variables. However, this causes a lintian warning about "postinst-uses-db-input", so to avoid this I created the 4 questions and asked in the config instead of the postinst. At the time, I couldn't see a reason for not doing this, but you have presented a good one. I'll switch back for the next release. > I also suggest you talk to maintainers of the Apache packages. There > is an apache-shared template which you could use for your needs by > registering it (see the REGISTER command in the debconf protocol). I looked at this, but it doesn't look useful. It is not used with all apaches (i.e. not in apache2), and I couldn't find any programs using it, or any documentation for it. I think I'll avoid it for now. Thanks for the enlightening report! -- Cameron Dale [EMAIL PROTECTED]
signature.asc
Description: OpenPGP digital signature