X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a5bf63a4db83a924cefa11797f1a1403e44d6c9c..46230812e0c9de44789e26349ad8686bd27cff36:/cookbooks/nominatim/recipes/default.rb diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 3f8b81459..63734cdb8 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -20,14 +20,13 @@ basedir = data_bag_item("accounts", "nominatim")["home"] email_errors = data_bag_item("accounts", "lonvia")["email"] -directory "#{basedir}" do +directory basedir do owner "nominatim" group "nominatim" mode 0o755 recursive true end - directory node[:nominatim][:logdir] do owner "nominatim" group "nominatim" @@ -352,7 +351,7 @@ end include_recipe "fail2ban" fail2ban_filter "nominatim" do - failregex '^ - - \[[^]]+\] "[^"]+" 429 ' + failregex '^ - - \[\] "[^"]+" 429 ' end fail2ban_jail "nominatim" do