Skip to content

Commit

Permalink
Fix s3 path for latest.state file
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Dec 18, 2024
1 parent 1de8ee8 commit a7c4e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/tiler-imposm/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function uploadLastState() {

# Attempt to upload the file to S3
echo "Uploading $state_file to S3 at $s3_path..."
if aws s3 cp "$state_file" "s3://${s3_path}" --acl private; then
if aws s3 cp "$state_file" "${s3_path}" --acl private; then
# Update the checksum file after a successful upload
echo "$current_checksum" > "$checksum_file"
echo "Successfully uploaded $state_file to S3."
Expand All @@ -140,7 +140,7 @@ function uploadLastState() {

function updateData() {

local s3_last_state_path="s3://${AWS_S3_BUCKET}/${BUCKET_IMPOSM_FOLDER}${DIFF_DIR}/last.state.txt"
local s3_last_state_path="${AWS_S3_BUCKET}/${BUCKET_IMPOSM_FOLDER}${DIFF_DIR}/last.state.txt"
local local_last_state_path="$DIFF_DIR/last.state.txt"
echo "Checking if $s3_last_state_path exists in S3..."
if aws s3 ls "$s3_last_state_path" > /dev/null 2>&1; then
Expand Down

0 comments on commit a7c4e38

Please sign in to comment.