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

Re: /etc/shells management



On Fri, Aug 22, 2003 at 22:56:22 -0400, kcr@debian.org wrote:

> [...] So, if a package contains something that the maintainer thinks
> ought to be a valid login shell, it's postinst should, (on initial
> install only, to allow a sysadmin to take it out again), run:
> 
> /usr/sbin/add-shell /path/to/shell

What's the preferred way to do this check? Consider, some shell is
installed with its appropriate entry in /etc/shells. Now, we remove it:
the entry will be deleted from /etc/shells, which makes sense, because
the binary isn't there any longer. The package is still in configured
state. Now we install it again, and the entry in /etc/shells should be
added again, since it was there when we begun. How does the postinst
know that this is no upgrade? Why doesn't add-shell care for this, so
the postinst can unconditionally run?

Kind regards,

Martin



Reply to: