]> git.openstreetmap.org Git - chef.git/commitdiff
fix typos
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 5 Jul 2013 12:35:49 +0000 (14:35 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 5 Jul 2013 12:35:49 +0000 (14:35 +0200)
cookbooks/nominatim/recipes/default.rb
cookbooks/nominatim/templates/default/update_source.erb

index a33fe85c24073c1a6682cde02d8fc8efdc2d2f7d..f6a57a8efc7d78047bed6e9ac42e404e9e485c1a 100644 (file)
@@ -185,7 +185,7 @@ cron "nominatim_logrotate" do
 end
 
 cron "nominatim_banip" do
-  command "#{source_directory}/utils/cron_banip.sh"
+  command "#{source_directory}/utils/cron_banip.py"
   user "nominatim"
   mailto email_errors
 end
index 49e285df92c732fe04349f628c5c7c9dfbbc78d2..17883a038adc3f9a3888cca4ee9500ee582f1cad 100644 (file)
@@ -8,7 +8,7 @@ cd <%= @source_directory %>
 ./configure &&
 make
 
-psql -U postgres <%= node[:nominatim][:database][:dbname] %> -c "SELECT version();" >/dev/null 2>&1
-if [ ! $? ]; then
+psql -d <%= node[:nominatim][:database][:dbname] %> -c "SELECT version();" >/dev/null 2>&1
+if [[ "$?" == "0" ]]; then
   ./utils/setup.php --create-functions --create-partition-functions --enable-diff-updates
 fi