cat/EOF doesnt like to be inside if statement

This commit is contained in:
cventastic
2022-01-23 16:53:34 +01:00
parent 93ee872cb1
commit 4992cc2fff

View File

@@ -1,7 +1,5 @@
#!/bin/bash
if [ ! -f /setupdone ]
then
# https://docs.harmony.one/home/network/validators/node-setup/syncing-db#2.-configuring-rclone
cat<<-EOF > rclone.conf
[release]
type = s3
@@ -13,6 +11,9 @@ then
storage_class = REDUCED_REDUNDANCY
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_1 /harmony/harmony_db_1 --multi-thread-streams 4 --transfers=8
touch /setupdone