[tekwalk] make rvmsudo use running user’s ENV var
@ tekwalk.blogspot.com [8/Mar/2013]
While running ‘rvmsudo chef-solo ….’, it picks desired user but because of $HOME inference in the ‘nvm/install.sh’ still the HOME value got picked for ‘/root’. It messed up the situation.
To fix it, and any certain issues around permission which might occur… using
$ rvmsudo USER=$USER HOME=$HOME chef-solo -j….
it’s working with desired output.