Bug 8268 - apache %preun runs "/bin/rm -fr /var/log/httpd/*"!!!
apache %preun runs "/bin/rm -fr /var/log/httpd/*"!!!
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: apache (Show other bugs)
6.1
All Linux
medium Severity high
: ---
: ---
Assigned To: Preston Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-01-07 12:55 EST by Mads Kiilerich
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-01-12 21:30:39 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mads Kiilerich 2000-01-07 12:55:05 EST
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-12 21:30:59 EST
changed for 6.2.
Comment 2 Mads Kiilerich 2000-01-13 11:15:59 EST
OK, thx.

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

Note You need to log in before you can comment on or make changes to this bug.