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

Re: Asking Questions upon package removal

On Sun, Feb 11, 2001 at 07:53:27PM +1100, John Ferlito wrote:

> 	I'm packaging up a backup application that creates a whole lot
> of data file somewhere in /usr/share. Now if you delete these files then
> your backup tapes become really painful to restore.

It shouldn't do this.  No application data should be written to /usr.  Such
things belong in /var (see FHS).

> 	So if someone does a --purge I want to query the user to check
> they really want to do this. Can I use debconf to do this in the preinst
> scripts? Or is there a better way todo this sort of thing or should I
> just assume the user isn't stupid?

You should be able to do this by using debconf calls in the postrm.  I don't
know whether or not you can (or should) ask questions there, but you can
retrieve answers to questions you have already asked.  See the bsd-ftpd package
for an example.

 - mdz

Reply to: