From: Sarah Hoffmann Date: Fri, 5 Jul 2013 12:35:49 +0000 (+0200) Subject: fix typos X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/1a87e7a0030888630cf004c66b2f051a794d6f6c?hp=7aa1c692da44b5441554522d486e01aa02b27c3a fix typos --- 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