]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/gpx.rb
Update carto stylesheet to v2.32.0
[chef.git] / cookbooks / web / recipes / gpx.rb
index b2117dde9cc466bb2176f9adb51f5e3a35cb5be9..3802cfd7fd5da6ddd0436c3cc881ad437e01605d 100644 (file)
@@ -67,13 +67,13 @@ template "/etc/init.d/gpx-import" do
             :database_password => db_passwords["gpximport"]
 end
 
-if ["database_offline", "database_readonly", "gpx_offline"].include?(node[:web][:status])
+if %w(database_offline database_readonly gpx_offline).include?(node[:web][:status])
   service "gpx-import" do
     action :stop
   end
 else
   service "gpx-import" do
-    action [ :enable, :start ]
+    action [:enable, :start]
     supports :restart => true, :reload => true
     subscribes :restart, "execute[gpx-import-build]"
     subscribes :restart, "template[/etc/init.d/gpx-import]"