Re: Conditional use of debconf
Bob Hilliard <firstname.lastname@example.org> writes:
> I would like to use debconf to present a message to the admin
> when a package is installed, but only if certain text does not
> appear in a config file.
> Without debconf, I could use code something like this in the
> if !grep -q include /etc/dictd.conf
> [Display message]
> I can't find anything in the debconf documentation or the command
> available in /usr/share/doc/debian-policy/debconf_specification.txt.gz
> that would permit this type of conditional display of a message. Is
> there something in the debconf documentation that I'm missing?
if !grep -q include /etc/dictd.conf
db_input medium foo/bar-message || [ $? -eq 30 ]
For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: email@example.com; Phone: 0041-1-3884400)