This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Starting planetiler.sh..." | |
sudo -i -u ubuntu bash << EOF | |
cd ~/planetiler | |
git pull | |
sudo mkdir /mnt | |
cd /mnt | |
sudo mkdir big |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
S3_ENDPOINT="https://ams3.digitaloceanspaces.com" | |
S3_BUCKET="osm-tiles" | |
S3_OBJECT_KEY="vector/planet.mbtiles" | |
# Retrieve the list of all versions of the S3 object | |
versions=$(aws s3api list-object-versions --endpoint $S3_ENDPOINT --bucket $S3_BUCKET --prefix $S3_OBJECT_KEY --query 'Versions[].VersionId' --output text) | |
# Get the latest version ID |