OsmAnd/config/server_indexes_scripts/batch_generator.sh
Victor Shcherb 3cc085ca26 Add scripts
2011-07-12 20:29:04 +02:00

24 lines
433 B
Bash

cd ~/gen_indexes
rm osmand.log
rm console
# update map creator
cd OsmAndMapCreator
yes | unzip /var/www-download/latest-night-build/OsmAndMapCreator-development.zip
cd ..
# remove backup and create new backup
rm -r backup
mkdir backup
mv indexes/uploaded/*.* backup
# remove all previous files
rm -r indexes
mkdir indexes
mkdir indexes/osm
mkdir indexes/uploaded
#run batch creator
./batch_indexing.sh > /dev/null 2&>console &