Bug 75137

Summary: Bug in spec/preuninstall - Deinstallation shows an error
Product: [Retired] Red Hat Linux Reporter: Peter Bieringer <pb>
Component: vixie-cronAssignee: Jens Petersen <petersen>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
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: 2003-03-19 07:56:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Bieringer 2002-10-04 19:02:07 UTC
Description of problem:
Deinstallation of vixie-cron shows an error, bug in preuninstall scriptlet in
spec file

Version-Release number of selected component (if applicable):
vixie-cron-3.0.1-69.i386.rpm


How reproducible:
Always

Steps to Reproduce:
1. rpm -e vixie-cron
	

Actual Results:  # rpm -e vixie-cron
/var/tmp/rpm-tmp.69851: line 2: [: missing `]'

Expected Results:  Not such problem

Additional info:

preuninstall scriptlet (through /bin/sh):
if [ "$1" = 0 ]; then
    [ -f /var/lock/subsys/crond] && /sbin/service crond stop >/dev/null 2>&1
    /sbin/chkconfig --del crond
fi

Fix:

-    [ -f /var/lock/subsys/crond] && /sbin/service crond stop >/dev/null 2>&1
+    [ -f /var/lock/subsys/crond ] && /sbin/service crond stop >/dev/null 2>&1

Comment 1 Jens Petersen 2003-02-19 13:43:34 UTC
Thanks for the report. Should be fixed in 3.0.1-74.
Please confirm.