Re: Move config-files from /etc into /etc/foobar during package upgrade
- To: email@example.com
- Subject: Re: Move config-files from /etc into /etc/foobar during package upgrade
- From: Ming Hua <firstname.lastname@example.org>
- Date: Sat, 31 Dec 2005 07:27:25 -0600
- Message-id: <20051231132725.GA4811@mountain>
- In-reply-to: <1135996623.5078.13.camel@localhost>
- References: <1135996623.5078.13.camel@localhost>
On Sat, Dec 31, 2005 at 03:37:03AM +0100, Daniel Leidert wrote:
> I'm currently preparing an update for a package. Until now, the
> configuration file(s) was/were located in /etc. Now there are changes,
> which make it more useful to have the configuration files
> inside /etc/foobar. The configuration files look like foobar.conf*.
> Are there special things I need to care of?
As a newbie maintainer myself, I find the examples and explanations in
http://www.dpkg.org/ConffileHandling very useful for dealing with
conffiles. If your configuration file didn't change format (i.e., the
user just need to copy the old /etc/foobar.conf* to
/etc/foobar/foobar.conf* without any changes), I believe the section
about "Moving a conffile" is exactly what you need.
Also, if the file format didn't change, I don't see any reason the user
should be asked if he/she wants to move the conffile, the package should
just move for him/her.