From 1e684edb6af361d71c6ba5dcf2698c3e1d5ba282 Mon Sep 17 00:00:00 2001 From: Stjepan Cvitanovic Date: Mon, 11 Oct 2021 22:22:17 +0200 Subject: [PATCH] Added E flag (#217) Added -E flag to use the set up environment. --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 2fc0aa0..84c3d29 100755 --- a/run.sh +++ b/run.sh @@ -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