Re: changing location of conffiles
Atsuhito Kohda wrote:
> Think of a package foo which had /etc/conf-foo as conffiles and now
> we need conf-foo and conf-foo-add as conffiles so we want to put
> them in /etc/foo (as /etc/foo/conf-foo and /etc/foo/conf-foo-add).
>
> In this case, old /etc/conf-foo will remaines after upgrading foo.
>
> Is there any good way to handle this case?
>
> - simply rm /etc/conf-foo (if it exists) by postinst?
> (someone might complain ...)
> - mv /etc/conf-foo /etc/conf/conf-foo.old by postinst?
> (then we should remove this at purge (or remove?), perhaps)
> etc. etc....
In your preinst, if the new conffile does not exist, and the old one
does (you can throw in a version check too), move the old file to the
new location.
--
see shy jo
Reply to: