2

I want to change file attributes by Itamae that exists already in server.

I tried like:

file '/usr/local/bin/jobber' do
  action :nothing
  owner 'jobber_client'
end

and

file '/usr/local/bin/jobber' do
  action :nothing
  user 'jobber_client'
end

But both didn't change the file owner.

How can I change file attributes by Itamae?

ironsand
  • 14,329
  • 17
  • 83
  • 176

1 Answers1

0

I think that you should use the :edit action instead of the :nothing one to change the file owner.

file '/usr/local/bin/jobber' do
  action :edit
  owner 'jobber_client'
end
StefanoGermani
  • 721
  • 7
  • 18