Remove Ubuntu 16.04 support for Nominatim
authorTom Hughes <tom@compton.nu>
Fri, 17 Aug 2018 18:36:44 +0000 (19:36 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 17 Aug 2018 18:36:44 +0000 (19:36 +0100)
cookbooks/nominatim/recipes/default.rb

index 26766bb06e6f0852f2e5f0773c92d8681a4f29b3..0d99a5cab374c8897efd62d1c27548f0a4cba5f8 100644 (file)
@@ -332,25 +332,19 @@ apache_module "proxy_fcgi"
 apache_module "proxy_http"
 apache_module "headers"
 
-php_version = if node[:lsb][:release].to_f >= 18.04
-                "7.2"
-              else
-                "7.0"
-              end
-
-service "php#{php_version}-fpm" do
+service "php7.2-fpm" do
   action [:enable, :start]
   supports :status => true, :restart => true, :reload => true
 end
 
 node[:nominatim][:fpm_pools].each do |name, data|
-  template "/etc/php/#{php_version}/fpm/pool.d/#{name}.conf" do
+  template "/etc/php/7.2/fpm/pool.d/#{name}.conf" do
     source "fpm.conf.erb"
     owner "root"
     group "root"
     mode 0o644
     variables data.merge(:name => name)
-    notifies :reload, "service[php#{php_version}-fpm]"
+    notifies :reload, "service[php7.2-fpm]"
   end
 end