Re: debconf question.
Em Tue, 31 Jul 2001 23:08:40 +0530
Viral <viral@debian.org> escreveu:
Hi Viral,
> I'm trying to use debconf to get inputs from the user in the package
> update-cluster.
>
> My problem is that, there will be a variable number of nodes for which
> information is required. This will be only known at runtime. It will
> be impossible to enter the nodes information separated by ':" or some
> such thing.
hmmm you could use variable substitution, is that what you need?
in config:
VAR=$(get the number of nodes)
db_subst update-clusters/config_nodes nodesnum $VAR
db_intput medium update-clusters/config_nodes || true
in templates:
Template: update-clusters/config_nodes
(...)
Choices: ${nodesnum}
(...)
is that what u want?
[]s!
--
Gustavo Noronha Silva - kov <http://www.metainfo.org/kov>
*----------------------------------------------------------------*
| .''`. | Debian GNU/Linux: <http://www.debian.org> |
| : :' : | Debian BR.......: <http://debian-br.sourceforge.net> |
| `. `'` | Be Happy! Be FREE! |
| `- | "Think globally, act locally!" |
*----------------------------------------------------------------*
Reply to: