Added E flag (#217)

Added -E flag to use the set up environment.
This commit is contained in:
Stjepan Cvitanovic 2021-10-11 22:22:17 +02:00 committed by GitHub
parent 4b93ca3e52
commit 1e684edb6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
run.sh
View File

@ -80,7 +80,7 @@ if [ "$1" = "import" ]; then
#Import external data
sudo chown -R renderer: /home/renderer/src
sudo -u renderer python3 /home/renderer/src/openstreetmap-carto/scripts/get-external-data.py -c /home/renderer/src/openstreetmap-carto/external-data.yml -D /home/renderer/src/openstreetmap-carto/data
sudo -E -u renderer python3 /home/renderer/src/openstreetmap-carto/scripts/get-external-data.py -c /home/renderer/src/openstreetmap-carto/external-data.yml -D /home/renderer/src/openstreetmap-carto/data
# Register that data has changed for mod_tile caching purposes
touch /var/lib/mod_tile/planet-import-complete