missing dependency for ban script and more typos
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 5 Jul 2013 13:16:04 +0000 (15:16 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 5 Jul 2013 13:16:04 +0000 (15:16 +0200)
cookbooks/nominatim/recipes/default.rb
cookbooks/nominatim/templates/default/ipblocks.erb
cookbooks/nominatim/templates/default/updater.erb

index f6a57a8efc7d78047bed6e9ac42e404e9e485c1a..8f08ef5af3f418ce5d6ad07b3b3630b761c37da6 100644 (file)
@@ -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"
index 5d0f87f85d114ae4a1fda6aa04e6a7f5062498c4..a679563a47002eb4f45a1664ea59c05c5a658395 100644 (file)
@@ -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
index 2c553ad21372ea0640a767493e63ccd19f65ce95..7443297e89b7b3650485ee36bbc8ed9a8a96554e 100644 (file)
@@ -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..."