From b4c9aeacbae040587e9d60e84a2ccd401fa4b9f1 Mon Sep 17 00:00:00 2001 From: siozosdr Date: Tue, 18 Jun 2019 09:49:32 +0200 Subject: [PATCH] (MODE-11365) Fixed user data for new style setup. --- deployment/modules/tileserver/files/user-data.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deployment/modules/tileserver/files/user-data.sh b/deployment/modules/tileserver/files/user-data.sh index ae64f92..b1dc1c2 100644 --- a/deployment/modules/tileserver/files/user-data.sh +++ b/deployment/modules/tileserver/files/user-data.sh @@ -1,6 +1,6 @@ #!/bin/bash set -x -#shellcheck disable=SC2154,SC2086,SC2035 +# shellcheck disable=SC2154,SC2086,SC2035 REGION=${region} ENVIRONMENT=${environment} MONO_REGION=${mono_region} @@ -50,6 +50,9 @@ sudo chown -R ubuntu:ubuntu /usr/src/app/. tar xzf /tmp/tileserver-gl.tar.gz -C /tmp/uncompressed/ # Setup map files sudo mv -f /tmp/uncompressed/configuration/map_files/config.json /data/ + sudo rm -rf /data/mbtiles/2019-04-29_data/styles \ + /data/mbtiles/2019-04-29_data/glyphs \ + /data/mbtiles/2019-04-29_data/sprites sudo mv -f /tmp/uncompressed/configuration/map_files/* /data/mbtiles/2019-04-29_data/ sudo chown -R ubuntu:ubuntu /data/. # Setup nginx