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.
DescriptionPermaine Cheung
2012-10-30 14:00:54 UTC
project_key: JBEWS
Currently, when we include the httpd zips from EWS 2 in EAP, we need to remove a couple of lines for the editing of .conf files that we will be removing from the httpd zips for EAP.
If we can add a check before the editing, we do not need to update the postinstall file.
As EWS 2.0.0 is close to GA, if we can get this in for EWS 2.0.1, that would be great.
(You can see which lines in the postinstall are removed if you look at the jb-eap-6-rhel-6 branch of jboss-eap6-httpd-natives in distgit)
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.
Comment 9Jean-frederic Clere
2013-05-31 14:06:03 UTC
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.