Skip to content

Commit c45698d

Browse files
author
Rub21
committed
Fix full-history URL in state.txt file
1 parent 9eb1717 commit c45698d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

images/full-history/start.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ osmium fileinfo $fullHistoryFile
3838

3939
# AWS
4040
if [ $CLOUDPROVIDER == "aws" ]; then
41-
echo "https://$AWS_S3_BUCKET.s3.amazonaws.com/planet/full-history/$fullHistoryFile" >$stateFile
41+
AWS_URL=${AWS_S3_BUCKET/s3:\/\//http:\/\/}
42+
echo "$AWS_URL.s3.amazonaws.com/planet/full-history/$fullHistoryFile" >$stateFile
4243
# Upload to S3
4344
aws s3 cp $fullHistoryFile $AWS_S3_BUCKET/planet/full-history/$fullHistoryFile --acl public-read
4445
aws s3 cp $stateFile $AWS_S3_BUCKET/planet/full-history/$stateFile --acl public-read

0 commit comments

Comments
 (0)