Mantis - tomcat5
Viewing Issue Advanced Details
1833 upgrade major always 2006-09-27 12:52 2009-03-26 20:35
james  
wbonnet  
normal  
closed  
fixed  
none    
none  
0001833: Update problems, /opt/csw/share/tomcat5/logs
Previous version of tomcat implicitly created the directory:
/opt/csw/share/tomcat5/logs

In the new package this is a link:
1 s none /opt/csw/share/tomcat5/logs=/var/opt/csw/tomcat5/logs

And hence will fail. Needs a preinstall script to handle.

# pkgchk CSWtomcat5
ERROR: /opt/csw/share/tomcat5/logs
    file type <s> expected <d> actual



On install catalina.sh tries to create the file catalina.out, but fails. Could be because it is now running as user tomcat and previously was root. This causes pkgadd to fail because the return status of postinstall is that of init.d script, there is no explicit exit ion postintsall.
Issue History
2009-03-26 20:35 wbonnet Note Added: 0005756
2009-03-26 20:35 wbonnet Status resolved => closed

Notes
(0004060)
wbonnet   
2006-10-11 18:21   
A script in the preinstall has been added to handle the file system layout between version 5.5.12 and latest.

A new version of the package is submitted, including this fix and an upgrade to 5.5.20 (latest available today)

The same fix has been applied to tomcat4 package
(0005756)
wbonnet   
2009-03-26 20:35   
Preinstall script added