From 79c2e4b80c3dee9d11f8300c5f7a4a3ebea391aa Mon Sep 17 00:00:00 2001 From: lutty Date: Tue, 1 Mar 2022 17:04:07 +0800 Subject: [PATCH] rosetta docker support sharddb --- rosetta/infra/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rosetta/infra/run.sh b/rosetta/infra/run.sh index b7b81c4fc..e4b5f2c52 100644 --- a/rosetta/infra/run.sh +++ b/rosetta/infra/run.sh @@ -5,9 +5,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DATA="$DIR/data" LOGS="$DATA/logs" BASE_ARGS=(--http.ip "0.0.0.0" --ws.ip "0.0.0.0" --http.rosetta --node_type "explorer" --datadir "$DATA" --log.dir "$LOGS") +DATA_NAME="${DATA_NAME:=harmony_db_0}" if [ -n "$RCLONE_DB_0_URL" ]; then - rclone -P -L sync $RCLONE_DB_0_URL $DATA/harmony_db_0 --multi-thread-streams 4 --transfers=8 + rclone -P -L sync $RCLONE_DB_0_URL $DATA/$DATA_NAME --multi-thread-streams 4 --transfers=8 fi mkdir -p "$LOGS"