]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/templates/default/planetdump.erb
Update apache config for 2.4
[chef.git] / cookbooks / planet / templates / default / planetdump.erb
index fbadac8b9ae24e7748bb3430af48dfd627083e8a..9df4a6f0372c8222dd1a9dda870e0c38e1a41350 100644 (file)
@@ -23,7 +23,7 @@ cur_planet=planet-${cur_date}.osm
 cur_changeset=changesets-${cur_date}.osm
 planet_dir=/store/planet/
 
-export CONNECTION_PARAMS='dbname=openstreetmap host=localhost user=planetdump password=<%= @password %>'
+export CONNECTION_PARAMS='dbname=openstreetmap host=db user=planetdump password=<%= @password %>'
 export PATH='/usr/local/bin:/usr/bin:/bin:/usr/bin/X11'
 
 
@@ -35,16 +35,16 @@ if [ \! -d ${planet_dir}/planet/ ]
 if [ \! -d ${planet_dir}/planet/${cur_year}/ ]; then mkdir ${planet_dir}/planet/${cur_year}/; fi
 cd ${planet_dir}/planet/${cur_year}/
 
-/opt/planetdump/planet06_pg | pbzip2 -p6 -7c > .${cur_planet}.bz2.new
+/opt/planetdump/planet06_pg | pbzip2 -p6 -6c > .${cur_planet}.bz2.new
 /opt/planetdump/planet06_pg --changesets | pbzip2 -p6 -9c > .${cur_changeset}.bz2.new
 
 planet_size=$(du -sb .${cur_planet}.bz2.new | awk '{ print $1 }')
 changeset_size=$(du -sb .${cur_changeset}.bz2.new | awk '{ print $1 }')
-if ((planet_size<28000000000)); then 
+if ((planet_size<32000000000)); then
        echo Planet .${cur_planet}.bz2.new too small
        exit 1
 fi
-if ((changeset_size<600000000)); then
+if ((changeset_size<720000000)); then
        echo Changeset .${cur_changeset}.bz2.new too small
        exit 1
 fi