X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..5f3a5421476c68027c50b821916585ab01f0efa1:/cookbooks/accounts/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/accounts/recipes/default.rb b/cookbooks/accounts/recipes/default.rb index 586d59004..b395aeca6 100644 --- a/cookbooks/accounts/recipes/default.rb +++ b/cookbooks/accounts/recipes/default.rb @@ -19,7 +19,7 @@ package "zsh" -administrators = [] +administrators = node[:accounts][:administrators].to_a search(:accounts, "*:*").each do |account| name = account["id"] @@ -67,7 +67,7 @@ search(:accounts, "*:*").each do |account| mode "755" files_owner name.to_s files_group name.to_s - files_mode 0o644 + files_mode "644" only_if do cookbook = run_context.cookbook_collection[cookbook_name] files = cookbook.relative_filenames_in_preferred_directory(node, :files, name.to_s)