Bug 900921 (JBPAPP6-1091)
Summary: | postinstall fails because of missing mod_cluster.conf and mod_snmp.conf for httpd provided with EAP 6.0.1.ER2 | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Radim Hatlapatka <rhatlapa> |
Component: | Apache Server (httpd) and Connectors | Assignee: | Permaine Cheung <pcheung> |
Status: | CLOSED NEXTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.0.0 | CC: | pcheung, rhatlapa |
Target Milestone: | --- | ||
Target Release: | EAP 6.0.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://jira.jboss.org/jira/browse/JBPAPP6-1091 | ||
Whiteboard: | eap6 httpd | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-11-05 11:33:57 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Radim Hatlapatka
2012-09-21 15:15:30 UTC
I'm making these changes to the different postinstall scripts. On RHEL: #JBPAPP-9446 -sed -i -e "s:MemManagerFile cache/mod_cluster:MemManagerFile $currentDir/cache/mod_cluster:" conf.d/mod_cluster.conf +# sed -i -e "s:MemManagerFile cache/mod_cluster:MemManagerFile $currentDir/cache/mod_cluster:" conf.d/mod_cluster.conf #JBPAPP-9746 -mkdir -p $currentDir/var/cache/mod_snmp -sed -i -e "s:/var/cache/mod_snmp:$currentDir/var/cache/mod_snmp:" conf.d/mod_snmp.conf +# mkdir -p $currentDir/var/cache/mod_snmp +# sed -i -e "s:/var/cache/mod_snmp:$currentDir/var/cache/mod_snmp:" conf.d/mod_snmp.conf On Windows: mkdir var\log\httpd 2>NUL mkdir var\cache\mod_ssl 2>NUL mkdir var\cache\mod_proxy 2>NUL -mkdir var\cache\mod_snmp 2>NUL +rem mkdir var\cache\mod_snmp 2>NUL mkdir var\run 2>NUL pushd etc\httpd if not exist modules\ mklink /D modules ..\..\lib\httpd\modules @@ -61,7 +61,7 @@ for %%i in (charset.conv mime.types) do if not exist %%i nawk -f "%INSTALL_ETC_DIR%\rewriteconf.awk" "%INSTALL_TOP_DIR%" %%i.in %%i ) pushd httpd\conf -for %%i in (httpd.conf mod_snmp.conf) do ( +for %%i in (httpd.conf ) do ( if not exist %%i nawk -f "%INSTALL_ETC_DIR%\rewriteconf.awk" "%INSTALL_TOP_DIR%" %%i.in %%i ) popd On Solaris: @@ -171,7 +171,7 @@ fi createbasedir /var/log/httpd createbasedir /var/cache/mod_ssl createbasedir /var/cache/mod_proxy -createbasedir /var/cache/mod_snmp +# createbasedir /var/cache/mod_snmp createbasedir /var/lock/subsys setattributes 0700 apache $SUGID /var/cache/mod_ssl @@ -240,7 +240,7 @@ EOH do copynoreplace $f done - copynoreplace "$INSTALL_ROOT/etc/httpd/conf/mod_cluster-native.conf" +# copynoreplace "$INSTALL_ROOT/etc/httpd/conf/mod_cluster-native.conf" copynoreplace "$INSTALL_ROOT/etc/httpd/conf/httpd.conf" copynoreplace "$INSTALL_ROOT/etc/mime.types" copynoreplace "$INSTALL_ROOT/etc/sysconfig/httpd" Please let me know if other modifications are needed, meanwhile, please update manually as above. Thanks! Changes committed, marking as resolved. Will be in ER3. This fix makes .postinstall working, but creates greater differences between httpd in EWS 2.0 and httpd shipped with EAP 6. [~permaine] is this really intended or there should be rather created the missing configuration files as they are in EWS 2.0? Putting the missing configuration files would be from my perspective better because it lowers the difference between this two products. Reopening till it will be determined if it should remain as it is or changed to lower differentiation between httpd in EWS 2.0 and httpd shipped with EAP 6.0.1 Link: Added: This issue relates to JBEWS-8 There are components in EWS that are not in EAP, hence, the zips will not be exactly the same as in EWS, EWS specific components should be removed. Also in EAP 6, webserver connectors and related files should be in the webserver connectors zip. I've filed JBEWS-8 (and linked this JIRA to it) so that we can fix the postinstall script to check for the existence of the file before editing it so that we can keep the postinstall without any changes in future releases. The fix solves the problem plus see comments above Release Notes Docs Status: Added: Not Required Writer: Added: mistysj Verified, see comments above Release Notes Docs Status: Removed: Not Required Writer: Removed: mistysj Docs QE Status: Removed: NEW |