-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passenger Depends on Shell $HOME #41
Comments
Is there a better workaround than setting this at some point in a recipe before passenger_apache2 runs?
|
What actually uses $HOME? Why does it need to be set? At what point in the run is it using $HOME? |
There are some locations in the passenger codebase itself that use HOME, which appears for automatic config file location lookups, especially when using RVM.
I don't think this is a cookbook specific issue. If we were to do anything it would be to explicitly set ENV['HOME'] = Etc.getpwuid(Process.uid).dir unless ENV.has_key?('HOME') (this is the same thing that passenger itself does in a few places) However, this feels like it could be problematic. As I said, it's not clear to me why this is an issue with passenger, and it appears to be difficult or inconsistent to reproduce. I think it's potentially a really bad idea to manipulate the shell environment variables in a community cookbook, as that can have unintended side effects. Similarly, I don't think that munging it in the |
I think this might be helpful for folks just coming into passenger_apache2 and running it as a service under init: #44 |
Closing this as the workaround provided seems sufficient. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Passenger depends on shell $HOME variable being set.
While chef-client is running in daemonized mode, the children spawned by chef-client do not include $HOME as part of the available shell environment.
As a customer, I would like a workaround for this issue chef-boneyard/chef-client#226 to be made in passenger_apache2 if it can be done sooner than in the chef-client cookbook.
The text was updated successfully, but these errors were encountered: