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

Re: /etc/ question



On Fri, Feb 23, 2001 at 03:57:33PM -0800, Sean 'Shaleh' Perry wrote:
> in your preinst, check for /etc/foo and if it exists, mkdir /etc/package and
> copy /etc/foo there.  Then remove /etc/foo.  Import thing here is that the
> preinst should not die because of any errors here.

Perhaps better: copy it in the postinst, remove the old version in the
postinst.  Then if any problems arise, the original version will still
be present.

If you are really careful, you should also move them back if the
package is being downgraded to a pre-move version.  Check policy to
see how the maintainer scripts are run.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

         Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
       Debian GNU/Linux Developer,  see http://people.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/



Reply to: