X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0f5529d3a61bef555a980a51d09da2264cdc0324..a74c4fad37f95e6a1f575d1ba452a4c501a0a03e:/cookbooks/planet/templates/default/planet-notes-dump.erb diff --git a/cookbooks/planet/templates/default/planet-notes-dump.erb b/cookbooks/planet/templates/default/planet-notes-dump.erb index 92ca8b375..77c73348f 100644 --- a/cookbooks/planet/templates/default/planet-notes-dump.erb +++ b/cookbooks/planet/templates/default/planet-notes-dump.erb @@ -33,7 +33,7 @@ if [ \! -d ${planet_dir}/notes/ ] if [ \! -d ${planet_dir}/notes/${cur_year}/ ]; then mkdir ${planet_dir}/notes/${cur_year}/; fi cd ${planet_dir}/notes/${cur_year}/ -/usr/bin/python /opt/planet-notes-dump/dump.py --quiet --database openstreetmap --host <%= node[:web][:readonly_database_host] %> --user planetdump --password '<%= @password %>' .${cur_planet_notes} +/usr/bin/python3 /opt/planet-notes-dump/dump.py --quiet --database openstreetmap --host <%= node[:web][:readonly_database_host] %> --user planetdump --password '<%= @password %>' .${cur_planet_notes} pbzip2 -p6 -9 .${cur_planet_notes} planet_notes_size=$(du -sb .${cur_planet_notes}.bz2 | awk '{ print $1 }')