Skip to content

Commit 29d6902

Browse files
committed
Make paths explicit
1 parent 74c63e9 commit 29d6902

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cookbooks/planet/files/default/replication-bin/replicate-minute

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ osmdbt-get-log --quiet
99
osmdbt-catchup --quiet
1010
osmdbt-create-diff --quiet --with-comment --max-changes=50000
1111

12-
cd /store/planet/replication/minute
13-
14-
. state.txt
12+
. /store/planet/replication/minute/state.txt
1513

1614
sequencePart1=$(($sequenceNumber / 1000000 % 1000))
1715
sequencePart2=$(($sequenceNumber / 1000 % 1000))
1816
sequencePart3=$(($sequenceNumber % 1000))
1917
diffPath=$(printf "%03d/%03d/%03d" $sequencePart1 $sequencePart2 $sequencePart3)
2018

21-
/opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING "${diffPath}.osc.gz" "s3://osm-planet-eu-central-1/planet/replication/minute/${diffPath}.osc.gz"
22-
/opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING "${diffPath}.state.txt" "s3://osm-planet-eu-central-1/planet/replication/minute/${diffPath}.state.txt"
23-
/opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING "state.txt" "s3://osm-planet-eu-central-1/planet/replication/minute/state.txt"
19+
/opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING "/store/planet/replication/minute/${diffPath}.osc.gz" "s3://osm-planet-eu-central-1/planet/replication/minute/${diffPath}.osc.gz"
20+
/opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING "/store/planet/replication/minute/${diffPath}.state.txt" "s3://osm-planet-eu-central-1/planet/replication/minute/${diffPath}.state.txt"
21+
/opt/awscli/v2/current/bin/aws --profile=osm-pds-upload s3 cp --storage-class=INTELLIGENT_TIERING "/store/planet/replication/minute/state.txt" "s3://osm-planet-eu-central-1/planet/replication/minute/state.txt"

0 commit comments

Comments
 (0)