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

Re: /etc/shells management



On Sun, 7 Sep 2003 07:24:42 +0200, Martin Godisch <martin@godisch.de> said: 

> On Sat, Sep 06, 2003 at 15:32:58 -0500, Manoj Srivastava wrote:
>> case "$1" in configure)
>> # Configure this package.  If the package must prompt the user for
>> # information, do it here.  There are three sub-cases:
>> if test "${2+set}" != set; then
>> # We're being installed by an ancient dpkg which doesn't remember
>> # which version was most recently configured, or even whether there
>> # is a most recently configured version.
>> :
>>
>> elif test -z "$2" -o "$2" = "<unknown>"; then
>> # The package has not ever been configured on this system, or was
>> # purged since it was last configured.
>> :
>>
>> else
>> # Version $2 is the most recently configured version of this
>> # package.

>> Shell may be missing in /etc/shells because the sysadmin decided to
>> remove it (so be it) or the package has been removed but not purged
>> (add it again).


	So create a file in the postinst that signifies the
 /etc/shells is configured, and remove it on removal.  This file is
 not a conffile; it so, if it exists, do nothing, if it does not
 exist, add.

	Simple, huh?
>> :
>>
>> fi ;;

	manoj

-- 
pessimist: A man who spends all his time worrying about how he can
keep the wolf from the door.  optimist: A man who refuses to see the
wolf until he seizes the seat of his pants.  opportunist: A man who
invites the wolf in and appears the next day in a fur coat.
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



Reply to: