Re: use and abuse of Debconf, follows-up
Mark Brown <broonie@sirena.org.uk> writes:
> On Fri, Feb 02, 2001 at 02:52:32PM +0100, Jérôme Marant wrote:
> > Tollef Fog Heen <tollef@add.no> writes:
>
> > > Don't mark the file as a conffile?
>
> > Ok, but how can I keep the file unmodified across upgrades ?
>
> Don't include it in the package at all and have your scripts update it as
> needed.
So, if I understood correctly, I could do something like this in the
postinst :
# Copying a default file if it does not exist
if [ ! -f /etc/myconf.conf ]; then
cp /usr/share/doc/mypackage/examples/myconf.conf /etc
fi
Then, I coulf modify the parameters within the script. Is this right ?
--
Jérôme Marant <jerome.marant@free.fr>
-----------------------------------
Debian Activity Page:
http://jerome.marant.free.fr/debian
-----------------------------------
Reply to: