Update tools/unix/docker_maps_generator.sh

Signed-off-by: zyphlar <zyphlar@noreply.codeberg.org>
This commit is contained in:
zyphlar
2025-05-27 04:56:16 +02:00
committed by zyphlar
parent da150c87a5
commit b04bda4ff2

View File

@@ -113,14 +113,16 @@ mwmfiles=( ~/OM/maps_build/*/*/*.mwm )
if (( ${#mwmfiles[@]} )); then
echo "<$(date +%T)> Uploading maps..."
# TODO: upload limited files via SFTP to Dreamhost (cdn-us-1.comaps.app)
# Needs StrictHostKeyChecking=no otherwise new containers/SFTP_HOSTs will require a manual ssh attempt
#sshpass -p $SFTP_PASSWORD sftp -o StrictHostKeyChecking=no $SFTP_USER@$SFTP_HOST:$SFTP_PATH <<EOF
#put ~/OM/maps_build/generation.log
#put ~/OM/maps_build/20*/2*/*.mwm
#put ~/OM/maps_build/20*/logs
#put ~/OM/maps_build/20*/2*/countries.txt
#put ~/OM/maps_build/20*/2*/World.mwm
#put ~/OM/maps_build/20*/2*/WorldCoasts.mwm
#exit
#EOF
# TODO: upload all files via rclone to Cloudflare (R2)
#s3cmd put ~/OM/maps_build/generation.log "s3://$S3_BUCKET/$(date +%y%m%d)/"
#s3cmd put ~/OM/maps_build/*/*/*.mwm "s3://$S3_BUCKET/$(date +%y%m%d)/" --recursive
#s3cmd put ~/OM/maps_build/*/logs "s3://$S3_BUCKET/$(date +%y%m%d)/" --recursive