X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/dadcad86e0cf7122fe094992455e26443023dac9..1ad79f5beef3408caa34cf502be456dc66159667:/cookbooks/web/recipes/cgimap.rb diff --git a/cookbooks/web/recipes/cgimap.rb b/cookbooks/web/recipes/cgimap.rb index 1a72d0363..7fb417b38 100644 --- a/cookbooks/web/recipes/cgimap.rb +++ b/cookbooks/web/recipes/cgimap.rb @@ -22,7 +22,9 @@ include_recipe "web::base" db_passwords = data_bag_item("db", "passwords") -package "openstreetmap-cgimap-bin" +package "openstreetmap-cgimap-bin" do + action :upgrade +end if node[:web][:readonly_database_host] database_host = node[:web][:readonly_database_host] @@ -68,7 +70,7 @@ else service "cgimap" do action [:enable, :start] supports :restart => true, :reload => true - subscribes :restart, "dpkg_package[openstreetmap-cgimap-bin]" + subscribes :restart, "package[openstreetmap-cgimap-bin]" subscribes :restart, "systemd_service[cgimap]" end end