Chef cookbook - reload PATH

后端 未结 3 690
小蘑菇
小蘑菇 2021-01-14 07:06

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 rel

3条回答
  •  旧时难觅i
    2021-01-14 07:15

    execute "run_updated_bash" do
        command "bash /etc/profile.d/myscript.sh"
    end
    

    Have you tried something like this? It could be run after you place your file in /etc/profile.d/

提交回复
热议问题