I am facing issue while want to change the default environment variables using chef recipe. My requirement is to change the present working shell (from bash
to csh
) and change the TERM
variable from xterm
to vt100
. I have tried some combination but its not working.
execute 'change present working shell' do
command '/bin/csh'
end
execute 'change term env' do
command 'setenv TERM vt100'
end
Also tried using script to run from chef but its also not working.