some more script changes when generating maps

This commit is contained in:
pavolzibrita 2011-09-20 21:18:46 +02:00
parent 56420d671a
commit ac21d0f275
3 changed files with 7 additions and 7 deletions

View file

@ -20,9 +20,8 @@ yes | unzip OsmAndMapCreator-development.zip
cd ..
# remove backup and create new backup
rm -rf backup
mkdir backup
# Not space enough - so that's commented right now
# we should not rm, just do incremental updates for now! rm -rf backup
mkdir -p backup
mv indexes/uploaded/*.* backup
# remove all previous files

View file

@ -16,8 +16,9 @@ fi
if [ -z "$JAVA_HOME" ] ; then
export JAVA_HOME=/usr/lib/jvm/java-6-sun/
fi
#"$JAVA_HOME/bin/java" -version
"$JAVA_HOME/bin/java" -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx768M -cp "OsmAndMapCreator/OsmAndMapCreator.jar:OsmAndMapCreator/lib/*.jar" net.osmand.data.index.IndexBatchCreator ./batch_server_upload.xml $@
#send mail
./uploading_finished_mail.sh
./upload_finished_mail.sh
# update the indexes
wget "http://download.osmand.net/indexes.php?update=true" -O - > /dev/null

View file

@ -5,7 +5,7 @@ echo > mail.txt
echo "Index generating finished or crashed." >> mail.txt
echo "List is sorted by time, first elements are the last created" >> mail.txt
echo >> mail.txt
ls -alt indexes >> mail.txt
ls -alrth indexes >> mail.txt
mail -s "Generating indexes finsihed or chrased" pavol.zibrita+index@gmail.com < mail.txt
#mail -s "Generating indexes finsihed or chrased" victor.shcherb+index@gmail.com < mail.txt
mail -s "Generating indexes finsihed or crashed" pavol.zibrita+index@gmail.com < mail.txt
mail -s "Generating indexes finsihed or crashed" victor.shcherb+index@gmail.com < mail.txt