cat/EOF doesnt like to be inside if statement
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [ ! -f /setupdone ]
|
|
||||||
then
|
|
||||||
# https://docs.harmony.one/home/network/validators/node-setup/syncing-db#2.-configuring-rclone
|
|
||||||
cat<<-EOF > rclone.conf
|
cat<<-EOF > rclone.conf
|
||||||
[release]
|
[release]
|
||||||
type = s3
|
type = s3
|
||||||
@@ -13,6 +11,9 @@ then
|
|||||||
storage_class = REDUCED_REDUNDANCY
|
storage_class = REDUCED_REDUNDANCY
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
if [ ! -f /setupdone ]
|
||||||
|
then
|
||||||
|
# https://docs.harmony.one/home/network/validators/node-setup/syncing-db#2.-configuring-rclone
|
||||||
rclone --config=rclone.conf -P -L sync release:pub.harmony.one/mainnet.min/harmony_db_0 /harmony/harmony_db_0 --multi-thread-streams 4 --transfers=8
|
rclone --config=rclone.conf -P -L sync release:pub.harmony.one/mainnet.min/harmony_db_0 /harmony/harmony_db_0 --multi-thread-streams 4 --transfers=8
|
||||||
rclone --config+rclone.conf -P -L sync release:pub.harmony.one/mainnet.min/harmony_db_1 /harmony/harmony_db_1 --multi-thread-streams 4 --transfers=8
|
rclone --config+rclone.conf -P -L sync release:pub.harmony.one/mainnet.min/harmony_db_1 /harmony/harmony_db_1 --multi-thread-streams 4 --transfers=8
|
||||||
touch /setupdone
|
touch /setupdone
|
||||||
|
|||||||
Reference in New Issue
Block a user