On Mon, Mar 12, 2007 at 14:32:15 +0800, Thomas Goirand wrote:

> In fact, I knew about it but had no time to give it a fix. I'll correct
> this asap.
> 
> Would it be correct to do something like this to parse the values?
> 
> if [ -x /etc/dtc-xen/dtc_create_vps.conf.sh ] ; then
>       . /etc/dtc-xen/dtc_create_vps.conf.sh
>       db_set dtc-xen/conf_debian_repository $DEBIAN_REPOS
>       ...
> fi
> db_input high dtc-xen/conf_debian_repository || true
> ...
> 
test -x will always fail, given that you chmod this file 600 in the
postinst.
I'd probably use something else than a shell script as config file, too.
Apart from that, I'm not sure you want to do this in the config script,
rather than the postinst.

> If you consider it right, then that's what I'm going to write. Let me
> know...
> 
I'm not sure it's right, but I'm sure the current postinst is wrong.

Cheers,
Julien


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to