Add planet-import-complete file during imports

master
Alexander Overvoorde 2019-10-12 12:21:02 +02:00
parent 40ebaf7934
commit ca4b1acb04
1 changed files with 3 additions and 0 deletions

3
run.sh
View File

@ -61,6 +61,9 @@ if [ "$1" = "import" ]; then
# Create indexes
sudo -u postgres psql -d gis -f indexes.sql
# Register that data has changed for mod_tile caching purposes
touch /var/lib/mod_tile/planet-import-complete
service postgresql stop
exit 0