Bug 44203

Summary: Zope-zserver postun script deficiency
Product: [Retired] Red Hat Powertools Reporter: R P Herrold <herrold>
Component: ZopeAssignee: Tim Powers <timp>
Status: CLOSED DEFERRED QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-12 03:18:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description R P Herrold 2001-06-12 03:18:44 UTC
Description of Problem:
The post-un script for Zope-zserver failes to remove BOTH the user and 
GROUP 'zope'

How Reproducible:
Install and then remove Zope-zserver -- Upon trying to re-install it (or do 
an upgrade) it will fail, due to the presence of the zope group already

Additional Information:
	
Relevant code segment is:


%postun zserver
  if [ $1 = 0 ] ; then
        userdel zope >/dev/null 2>&1 || :
  fi
  if [ "$1" -ge "1" ]; then
        /etc/rc.d/init.d/lpd condrestart > /dev/null 2>&1
  fi


Solution: add code  to strip out the group zope if the user is successfully 
deleted.

Comment 1 Tim Powers 2001-10-11 14:36:39 UTC
Powertools is pretty much depricated now. I'll fix this the next time Zope needs
updating for security problems. I am closing this and marking it as "deferred".

Tim