David Masover
8/4/2008 7:19:00 AM
On Monday 04 August 2008 02:09:18 Peter Hoang wrote:
> I can export GEM_HOME variable to change the
> location however, this will not work for crontab scripts which bypass
> .bash_profile and /etc/profile.
It might be worth trying .bashrc -- .bash_profile is specifically for
interactive logins -- but that won't work if they're using /bin/sh.
Another possibility is /etc/environment, though I remember that not working...
Worst case, there's always setting the environment variable directly
in /etc/crontab.
There's also tricks like symlinks, bind-mounts, etc.
I'm sure Rubygems can be installed wherever you like -- but you really should
solve the problem of being able to set global environment variables.