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

Re: ITP vexim



On Mon, Jan 23, 2006 at 12:16:25AM +0100, Daniel Knabl wrote:

> > Are you planning on providing fully generalized "maintainer script"
> > handling of the config files, or are conffiles sufficient?
> I am trying this right now in ./debian/postinst:

>   cat /usr/share/doc/vexim/setup/mysql.sql |\
>       sed s/@@PASS@@/$dc_vexim_pass/g |\
>       sed s/@@MYIP@@/$dc_vexim_myip/g |\
>       sed s/@@FDQN@@/$dc_vexim_fdqn/g \
>       > /tmp/vexim_mysql.tmp
>   mysql -u debian-sys-maint \
>       < /tmp/vexim_mysql.tmp

>   is there a more elegant way for substitution of @@PASS@@...?

Take a look at wwwconfig-common and/or dbconfig-common.

gregor 
-- 
 .''`.   http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
 : :' :  infos zur usenet-hierarchie at.*: http://www.usenet.at/
 `. `'   member of https://www.vibe.at/ | how to reply: http://got.to/quote/
   `-    NP: Giant Sand: No Reply

Attachment: signature.asc
Description: Digital signature


Reply to: