From 1a87e7a0030888630cf004c66b2f051a794d6f6c Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 5 Jul 2013 14:35:49 +0200 Subject: [PATCH] fix typos --- cookbooks/nominatim/recipes/default.rb | 2 +- cookbooks/nominatim/templates/default/update_source.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index a33fe85c2..f6a57a8ef 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -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 diff --git a/cookbooks/nominatim/templates/default/update_source.erb b/cookbooks/nominatim/templates/default/update_source.erb index 49e285df9..17883a038 100644 --- a/cookbooks/nominatim/templates/default/update_source.erb +++ b/cookbooks/nominatim/templates/default/update_source.erb @@ -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 -- 2.39.5