Bug 901126 (JBEWS-8)
Summary: | Update postinstall script to check for check for conf file before editing | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Web Server 2 | Reporter: | Permaine Cheung <pcheung> | ||||
Component: | httpd | Assignee: | Weinan Li <weli> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Libor Fuka <lfuka> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 2.0.0 | CC: | jclere, jdoyle, lfuka, majoshi, mhasko, mhusnain, mturk, pcheung, pslavice, rhatlapa, rsvoboda, weli | ||||
Target Milestone: | --- | ||||||
Target Release: | 2.0.1 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://jira.jboss.org/jira/browse/JBEWS-8 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
JBoss Enterprise Web Server 2.0 contained <classname>mod_snmp</classname> and <classname>mod_cluster</classname>. However, JBoss Enterprise Application Platform does not require these dependencies and therefore the commands that manipulate <classname>mod_snmp</classname> and <classname>mod_cluster</classname> in the <filename>.postinstall</filename> file are not suitable for JBoss Enterprise Application Platform. As a result, the <filename>.postinstall</filename> file included with JBoss Enterprise Application Platform 2.0 did not work as expected. This is fixed so that the <filename>.postinstall</filename> file now includes condition tests in <classname>mod_cluster</classname> and <classname>mod_snmp</classname>. As a result, the <filename>.postinstall</filename> file shipped with JBoss Enterprise Application Platform works as expected.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-01-03 12:58:30 UTC | Type: | Feature Request | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Permaine Cheung
2012-10-30 14:00:54 UTC
Link: Added: This issue is related to JBPAPP-9993 Link: Added: This issue is related to JBPAPP-9551 Link: Added: This issue relates to JBPAPP-9551 Link: Removed: This issue is related to JBPAPP-9551 Created attachment 739811 [details]
add test condition in post install
Hi Mladen, could you please patch the win/sol postinstall file (for zip bundle) as I did in attachment? Thanks! We are doing this differently for windows/solaris. For windows we already have that rewrite to absolute dir path. For solaris we use /var/cache/ and that cannot be changed. BTW, you should no do that for RHEL as well because its a security risk if you have log and cache in userdir. The DocText looks wrong... The current doc is wrong. Here are some suggestions: Cause:JBoss Enterprise Web Server 2 ships mod_snmp and mod_jk but JBoss Enterprise Application Platform don't have these dependencies. So the commands that manipulate mod_snmp and mod_jk in .postinstall are not suitable for JBoss Enterprise Application Platform. Consequence: The .postinstall shipped in JBoss Enterprise Application Platform will not work properly. Fix: Add condition tests in mod_jk and mod_snmp parts of .postinstall. Result: The .postinstall shipped in JBoss Enterprise Application Platform will work properly. Thank you, Wei Nan and Jean-Frederic. New proposed text is now in the doc_text field. Sorry Misha, I've made a mistake on the doc: The components affected should be "mod_cluster and mod_snmp" instead of "mod_jk and mod_snmp". VERIFIED on: jboss-ews-httpd-2.0.1-CR1-RHEL5-i386.zip jboss-ews-httpd-2.0.1-CR1-RHEL5-x86_64.zip jboss-ews-httpd-2.0.1-CR1-RHEL6-i386.zip jboss-ews-httpd-2.0.1-CR1-RHEL6-x86_64.zip Verified on 2.0.1 CR1 for Solaris and Windows, regarding comm 7 |