Bug 8268

Summary: apache %preun runs "/bin/rm -fr /var/log/httpd/*"!!!
Product: [Retired] Red Hat Linux Reporter: Mads Kiilerich <mads>
Component: apacheAssignee: Preston Brown <pbrown>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6.1CC: mads
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-01-13 02:30:39 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 Mads Kiilerich 2000-01-07 17:55:05 UTC
From the .spec:

%preun
if [ $1 = 0 ];
then
   /etc/rc.d/init.d/httpd stop > /dev/null
2>&1
   /sbin/chkconfig --del
httpd
   /bin/rm -fr
/var/log/httpd/*
fi

Log-files are valueable data and must be handled with care - and especially
not removed!

Please _never_ do a "rm -f" on _anything_, especially not with -r or *!

The "no-new-rpms" fix: tell people to use --noscripts when
removing/upgrading.

The "new-rpms" fix is obvious.

Regards

Comment 1 Preston Brown 2000-01-13 02:30:59 UTC
changed for 6.2.

Comment 2 Mads Kiilerich 2000-01-13 16:15:59 UTC
OK, thx.

Will the preun script be run for those who chose to upgrade from 6.1 to 6.2?