Mark Brown <[EMAIL PROTECTED]> writes:

> On Fri, Feb 02, 2001 at 02:52:32PM +0100, Jérôme Marant wrote:
> > Tollef Fog Heen <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>

-----------------------------------
Debian Activity Page:
http://jerome.marant.free.fr/debian
-----------------------------------

Reply via email to