I am trying to run chmod +x /usr/local/bin/binaryname
within chef.
I have used execute resource
for that as shown below:
execute "run_binary" do
command "chmod +x binaryname"
cwd "/usr/local/bin"
not_if "stat --format=%a /usr/local/bin/binaryname" | grep 755
end
Please let me know if there is a better way
Aucun commentaire:
Enregistrer un commentaire