Bug 245263 - Fix rhn-java spec file
Fix rhn-java spec file
Product: Red Hat Network
Classification: Red Hat
Component: RHN/Other (Show other bugs)
All Linux
high Severity high
: ---
: ---
Assigned To: Mike Orazi
Steve Milner
Depends On:
Blocks: 239809
  Show dependency treegraph
Reported: 2007-06-21 18:33 EDT by Mike Orazi
Modified: 2007-07-25 11:15 EDT (History)
1 user (show)

See Also:
Fixed In Version: 5.0.2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-07-25 11:15:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mike Orazi 2007-06-21 18:33:30 EDT
Description of problem:
rhn-java spec file needs pre & postun tags to remove the exploded rhn war
directory + the tomcat work directory so that tomcat doesn't accidentally run
old versions of the application.

Tomcat5 should always clean up, but sometimes it seems to not shut down cleaning
and keep old revs around.

Version-Release number of selected component (if applicable):

How reproducible:
Ever rpm update

Steps to Reproduce:
1. Update rhn-java rpm
2. Notice /usr/share/tomcat5/webapps/rhn directory is older than
Actual results:

Expected results:
Removed /usr/share/tomcat5/webapps/rhn & /usr/share/tomcat5/work/localhost/rhn

Additional info:
Comment 1 Steve Milner 2007-06-29 14:22:26 EDT
James Bowes added the following ....

+#Remove the exploded war and work directory
rm -rf /usr/share/tomcat5/webapps/rhn
rm -rf /usr/share/tomcat5/work/Catalina/localhost/rhn

+#Remove the exploded war & work directory
rm -rf /usr/share/tomcat5/webapps/rhn
rm -rf /usr/share/tomcat5/work/Catalina/localhost/rhn

Issue seems to be fixed:
[root@rhnjava webapps]# hostname
[root@rhnjava webapps]# ls -la | grep rhn
drwxr-xr-x  11 tomcat tomcat     4096 Jun 29 11:41 rhn
-rwxrwxr-x   1 tomcat tomcat 22827614 Jun 29 11:06 rhn.war
[root@rhnjava webapps]# 
Comment 2 James Bowes 2007-07-25 11:15:59 EDT
rhn502 released.

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