Bug 1358422
Summary: | LD_LIBRARY_PATH entries exported in unix session are overriden in apachectl script | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Web Server 2 | Reporter: | fgoldefu |
Component: | httpd | Assignee: | Coty Sutherland <csutherl> |
Status: | CLOSED WONTFIX | QA Contact: | Jan Stefl <jstefl> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 2.1.1 | CC: | jclere, jdoyle, pslavice, rsvoboda |
Target Milestone: | CR02 | ||
Target Release: | 2.1.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
When LD_LIBRARY_PATH content was overwritten by apachectl, you could not set it before starting apachectl. This is fixed. The part needed by apachectl is added before the environment variable value.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-06-13 12:22:42 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1363639 |
Description
fgoldefu
2016-07-20 16:01:11 UTC
Change to "export LD_LIBRARY_PATH="$currentDir/lib:$LD_LIBRARY_PATH"" in postinstall is not correct as it will result to "export LD_LIBRARY_PATH="/opt/jboss-ews-2.1/httpd/lib:"" you need to escape it in postinstall it makes sense ;) It's part of postinstall script that changes apachectl, if $ is not escaped, LD_LIBRARY_PATH will be resolved to it's actual value when postinstall is run. One want to set LD_LIBRARY_PATH when starting apache httpd server, and not postinstall, i suppose... So probably the $currentDir needs to be escaped too no? (In reply to Jean-frederic Clere from comment #6) > So probably the $currentDir needs to be escaped too no? No, if we do that the apachectl will always export ":" because it can't evaluate the $currentDir variable at runtime. The postinstall script is a script executed to create another script (for this portion); it updates the LD_LIBRARY_PATH location in apachectl. If we don't escape the variable, you get the following in apachectl after running postinstall: $ grep LD_LIBRARY_PATH sbin/apachectl export LD_LIBRARY_PATH="~/jboss-ews-2.1/httpd/lib:" Obviously, that's wrong. What we really want is: $ grep LD_LIBRARY_PATH sbin/apachectl export LD_LIBRARY_PATH="~/jboss-ews-2.1/httpd/lib:$LD_LIBRARY_PATH" so that the variable gets evaluated every time the user executes apachectl, not when the postinstall script is executed. Michal Karm Babacek <mbabacek> updated the status of jira JBCS-65 to Resolved Bogdan Sikora <bsikora> updated the status of jira JBCS-65 to Reopened Coty Sutherland <csutherl> updated the status of jira JBCS-65 to Resolved |