]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/gpx.rb
Merge pull request #50 from Firefishy/add-imagery
[chef.git] / cookbooks / web / recipes / gpx.rb
index 10463da89f966ad98f7c88602fa08ae100f1b867..51eea1ed47863c09235e9e23a70d2947837682cc 100644 (file)
@@ -61,7 +61,7 @@ template "/etc/init.d/gpx-import" do
   variables :gpx_directory => gpx_directory,
             :pid_directory => pid_directory,
             :log_directory => log_directory,
   variables :gpx_directory => gpx_directory,
             :pid_directory => pid_directory,
             :log_directory => log_directory,
-            :database_host =>  node[:web][:database_host],
+            :database_host => node[:web][:database_host],
             :database_name => "openstreetmap",
             :database_username => "gpximport",
             :database_password => db_passwords["gpximport"]
             :database_name => "openstreetmap",
             :database_username => "gpximport",
             :database_password => db_passwords["gpximport"]
@@ -73,7 +73,7 @@ if %w(database_offline database_readonly gpx_offline).include?(node[:web][:statu
   end
 else
   service "gpx-import" do
   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]"
     supports :restart => true, :reload => true
     subscribes :restart, "execute[gpx-import-build]"
     subscribes :restart, "template[/etc/init.d/gpx-import]"