Description of problem: LD_LIBRARY_PATH entries exported in unix session are overridden in apachectl script. Version-Release number of selected component (if applicable): EWS 2.1.1 How reproducible: Every time. Steps to Reproduce: 1. Set LD_LIBRARY_PATH in a shell 2. Use apachectl to start/stop/etc 3. Observe that your LD_LIBRARY_PATH was overridden by the apachectl version. Actual results: apachectl overwrites LD_LIBRARY_PATH Expected results: apachectl shouldn't overwrite LD_LIBRARY_PATH
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