We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 731a3fd + 80f5681 commit d944d29Copy full SHA for d944d29
docker/data-restore/data-restore-entry.sh
@@ -43,6 +43,20 @@ case $NETWORK in
43
;;
44
esac
45
46
+# Default to executing data restore in a finite mode.
47
+MODE="--finite"
48
+case $FINITE_MODE in
49
+ "true" | "")
50
+ ;;
51
+ "false")
52
+ MODE=""
53
54
+ *)
55
+ echo "Invalid value of FINITE_MODE: expected boolean"
56
+ exit 1
57
58
+esac
59
+
60
if [[ -n $PG_DUMP && "$COMMAND" == "--continue" ]]
61
then
62
# Do not drop db if the file doesn't exist.
@@ -56,4 +70,4 @@ fi
70
71
CONFIG_FILE="/usr/src/configs/${NETWORK}.json"
72
-zk f ./target/release/zksync_data_restore $COMMAND --finite --config $CONFIG_FILE --web3 $WEB3_URL || exit 1
73
+zk f ./target/release/zksync_data_restore $COMMAND $MODE --config $CONFIG_FILE --web3 $WEB3_URL || exit 1
0 commit comments