Skip to content
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

/etc/profile.d/chruby breaks mdm upstart script #204

Closed
bemurphy opened this issue Sep 21, 2013 · 7 comments
Closed

/etc/profile.d/chruby breaks mdm upstart script #204

bemurphy opened this issue Sep 21, 2013 · 7 comments

Comments

@bemurphy
Copy link

Still trying to figure out exactly what is up, but I discovered that mdm on Linux Mint 15 can't start when /etc/profile.d/chruby is in place. Moved it out, and all was fine.

Not sure exactly if this is chruby or mdm problem, still hunting.

@postmodern
Copy link
Owner

Did you add [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ] || return to the top?

@bemurphy
Copy link
Author

the /etc/profile.d/chruby file was generated from scripts/setup.sh, so it had that at the top, yes.

@vovimayhem
Copy link

Damn after like 10 reinstalls of Linux Mint 16 during the past 4 weeks, I finally pinpointed this file was the problem...

I had the following contents:

[ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ] || return

source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh

I went commenting each line upward... It failed to start the MDM even when i left just the first line uncommented...

I'll see if I can make my way through this.

@vovimayhem
Copy link

I ended changing my file to this:

if [ -n "$BASH_VERSION" -o -n "$ZSH_VERSION" ]; then
    source /usr/local/share/chruby/chruby.sh
    source /usr/local/share/chruby/auto.sh
fi

Also I found this other issue that talked about this: #56

Any comments???

@postmodern
Copy link
Owner

I updated the README instructions to use if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then. Does that fix the issue?

@vovimayhem
Copy link

Nice!!!

It solves the issue on my lap (Linux MInt 16 64bit). I don't see how it would cause problems on other distributions, so it seems pretty fair to me!

Thanks!

@postmodern
Copy link
Owner

I suspect they are loading the files oddly (maybe using eval?) and the explicit return is breaking the the control flow. I think we can close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants