[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.


…click here to read full post


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: