I am trying to change $GRAILS_HOME from /usr/grails-1.3.7 to /usr/grails-2.0.0
If I just do export GRAILS_HOME=/usr/grails-2.0.0 it doesn't persist when I log out and back in.
I found a line in /etc/profile using grep -R "GRAILS_HOME" /etc/ which reads like
GRAILS_HOME=/usr/grails-1.3.7
...
export PATH ... GRAILS_HOME ...
So I changed that and logged out. The change does not seem to have taken effect, although my edits to the file remain. I cannot reboot the machine as it is serving stuff for my buddy and he is only giving me some space. But I do want the environment variable changed permanently and everywhere. What do I need to do?
echo $SHELLsays/bin/bash– Mikey Mar 7 '12 at 22:59