Bug 1106516
| Summary: | mod_snmp.conf configuration in .postinstall makes postinstall non-reentrant | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Web Server 2 | Reporter: | Michal Karm Babacek <mbabacek> |
| Component: | httpd | Assignee: | Weinan Li <weli> |
| Status: | CLOSED EOL | QA Contact: | Michal Karm Babacek <mbabacek> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.1.0 | CC: | dcheung, jdoyle, jstefl, lfuka, mbabacek, pslavice, rsvoboda |
| Target Milestone: | ER03 | ||
| Target Release: | 2.1.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Previously in JBoss Enterprise Web Server, running the <filename>.postinstall</filename> file more than once resulted in the currentDir prepending process entering into an infinite loop and the process never concluding.
This is fixed in JBoss Enterprise Web Server 2.1 so that running <filename>.postinstall</filename> more than once works as expected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-13 12:09:56 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: | |||
Commited and pushed fix to rpm repo jboss-ews for branch jb-eap-6-rhel-6, jb-eap-6-rhel-7, and ep-6-rhel-5. Rebuild required for fix to apply. (In reply to Dustin Kut Moy Cheung from comment #1) > Commited and pushed fix to rpm repo jboss-ews for branch jb-eap-6-rhel-6, > jb-eap-6-rhel-7, and ep-6-rhel-5. > > Rebuild required for fix to apply. Thanks for help Dustin! btw, jboss-ews el5 and el6 branches are merged, no need to work on ep-6-rhel-5 in the future :-) Verified, THX. |
Re-running .postinstall keeps prepending currentDir indefinitely. Patch that fixes the issue: --- jboss-ews-2.1/httpd/.postinstall 2014-06-04 03:09:09.000000000 -0400 +++ jboss-ews-2.1/httpd/.postinstall 2014-06-09 10:12:20.574001111 -0400 @@ -45,7 +45,7 @@ #JBPAPP-9746 if [ -f 'conf.d/mod_snmp.conf' ]; then 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 + sed -i -e "s:SNMPVar /var/cache/mod_snmp:SNMPVar $currentDir/var/cache/mod_snmp:" conf.d/mod_snmp.conf fi #for mod_nss