Chef cookbook - reload PATH
问题 I just installed java using chef cookbook and updated PATH environment variable for all users (added new file to /etc/profile.d/). Is it possible to tell chef to reload PATH variable? When I do something like this: execute "java_check" do command "java -version" end Is says that java could not be found. It works fine when I log out, log in again and then run chef recipe. 回答1: I'm not 100% sure you can update the PATH variable for future chef runs, but you can set it up manually using the