4 # sudo -u tileupdate ocean-update
8 cd "<%= @style_directory %>"
10 rm -rf "data/ocean-tiles.txt"
11 scripts/get-external-data.py -R tilekiln -e "data/ocean-tiles.txt"
13 if [ -f "data/ocean-tiles.txt" ]
15 wc -l "data/ocean-tiles.txt"
16 <%= @tilekiln_bin %> generate layers \
17 --source-dbname "<%= @source_database %>" \
18 --storage-dbname "<%= @storage_database %>" \
19 --num-threads "<%= node[:vectortile][:replication][:threads] %>" \
20 --config <%= @config_path %> \
21 < "data/ocean-tiles.txt"
23 echo "No tile updates required"