From 5697e7530f90dcc48a5fcc596bf8862ba9f251f2 Mon Sep 17 00:00:00 2001 From: goldsquid Date: Sat, 6 Sep 2025 16:04:58 +0700 Subject: [PATCH] fix --- sei/scripts/init.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sei/scripts/init.sh b/sei/scripts/init.sh index 5a769c0b..91305599 100644 --- a/sei/scripts/init.sh +++ b/sei/scripts/init.sh @@ -35,11 +35,11 @@ env apk add curl jq if [ $? -ne 0 ]; then exit 1; fi - -curl -sL "$GENESIS_URL" -o "$CONFIG_DIR/genesis.json" - + if seid init ${MONIKER} --chain-id ${CHAIN_SPEC} --home $HOME_DIR/; then - + # replace the genesis with the one from the url + curl -sL "$GENESIS_URL" -o "$CONFIG_DIR/genesis.json" + # somehow it's better to make home static to /root sed -i 's|~/|/root/|g' "$CONFIG_DIR/config.toml" sed -i 's|~/|/root/|g' "$CONFIG_DIR/app.toml"