]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/accounts/recipes/default.rb
nominatim: disallow details requests without referer
[chef.git] / cookbooks / accounts / recipes / default.rb
index fa7dc2814c8367705e7eea61284f97470a24a774..b395aeca615c44f3bb46546c2610e27f076fb031 100644 (file)
@@ -19,7 +19,7 @@
 
 package "zsh"
 
-administrators = []
+administrators = node[:accounts][:administrators].to_a
 
 search(:accounts, "*:*").each do |account|
   name = account["id"]
@@ -64,10 +64,10 @@ search(:accounts, "*:*").each do |account|
       source name.to_s
       owner name.to_s
       group name.to_s
-      mode 0o755
+      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)