From: Sarah Hoffmann Date: Fri, 5 Jul 2013 13:16:04 +0000 (+0200) Subject: missing dependency for ban script and more typos X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/f667d26c54fa043489d1f37b9617f937cfb04bfc missing dependency for ban script and more typos --- diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index f6a57a8ef..8f08ef5af 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -110,6 +110,7 @@ package "automake" package "libproj-dev" package "libprotobuf-c0-dev" package "protobuf-c-compiler" +package "python-psycopg2" execute "php-pear-db" do command "pear install DB" diff --git a/cookbooks/nominatim/templates/default/ipblocks.erb b/cookbooks/nominatim/templates/default/ipblocks.erb index 5d0f87f85..a679563a4 100644 --- a/cookbooks/nominatim/templates/default/ipblocks.erb +++ b/cookbooks/nominatim/templates/default/ipblocks.erb @@ -1,4 +1,4 @@ -LOGFILE=/var/log/nominatim/restricted_ips.log +LOGFILE='/var/log/nominatim/restricted_ips.log' # space-separated list of IPs that are never banned WHITELIST = '' # space-separated list of IPs manually blocked diff --git a/cookbooks/nominatim/templates/default/updater.erb b/cookbooks/nominatim/templates/default/updater.erb index 2c553ad21..7443297e8 100644 --- a/cookbooks/nominatim/templates/default/updater.erb +++ b/cookbooks/nominatim/templates/default/updater.erb @@ -21,7 +21,7 @@ do # sleep a bit if updates take less than a minute endtime=`date +%s` elapsed=$((endtime - starttime)) - if [[ $elapsed < 60 ]] + if [[ $elapsed -lt 60 ]] then sleepy=$((60 - $elapsed)) echo "Sleeping for ${sleepy}s..."