]> git.openstreetmap.org Git - chef.git/commitdiff
planet-notes-dump: move quiet option to correct place
authorGrant Slater <git@firefishy.com>
Sat, 23 Aug 2014 13:15:55 +0000 (14:15 +0100)
committerGrant Slater <git@firefishy.com>
Sat, 23 Aug 2014 13:15:55 +0000 (14:15 +0100)
cookbooks/planet/templates/default/planet-notes-dump.cron.erb
cookbooks/planet/templates/default/planet-notes-dump.erb

index 40c07ed5375d25cf34e0c047a614e6f23d1a1fb1..3c5709af15cc23bb5977b6661f5d28f0f9bb7e0c 100644 (file)
@@ -1,5 +1,5 @@
 MAILTO=grant-smaug@firefishy.com
-0 3 * * * www-data /usr/local/bin/planet-notes-dump --quiet
+0 3 * * * www-data /usr/local/bin/planet-notes-dump
 
 #Delete Planet Notes dump files older than 8 days
 10 8 * * * www-data find /store/planet/notes/20??/ -maxdepth 1 -type f -iname 'planet-notes-??????.osn*' -printf '\%T@ \%p\n' | sort -k 1nr | sed 's/^[^ ]* //' | tail -n +17 | xargs -r rm -f
index be94c941b64fb61ba35fa43a19096b6f2962c31d..6595104258e474f02cea7f6c09f9c0ec89c12ba9 100644 (file)
@@ -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 --database openstreetmap --host db-slave --user planetdump --password '<%= @password %>' .${cur_planet_notes}
+/usr/bin/python /opt/planet-notes-dump/dump.py --quiet --database openstreetmap --host db-slave --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 }')