[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Moving a config file

On Thu, Nov 27, 2003 at 04:07:06PM -0500, Stephen Gran wrote:

> I have to move a config file, and I am not sure of the best way of
> handling it, so I wanted to ask for opinions.
> The problem is that I am currently shipping an /etc/default/$package,
> which needs to now become /etc/$package.conf - it's not a shell script,
> but more of a hacked together config file.  What I want to do is ensure
> that any user changes to the old /etc/default/$package file get
> seemlessly merged into /etc/$package.conf, but not mess up any user made
> up $package.conf

Is the file a conffile, or not?  If it is a conffile (and if it is shipped
in the package, it must be), then move it in preinst (wrapped in appropriate
checks, such as package version and file existence), and dpkg will handle
the rest.

 - mdz

Reply to: