Skip to content

Commit

Permalink
Merge pull request #198 from Fairblock/fix-devnet-script-not-working
Browse files Browse the repository at this point in the history
Add update fairyringclient config to devnet start script
  • Loading branch information
p0p3yee authored Oct 24, 2024
2 parents 6ba0289 + 3fa467d commit 7dfb39e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/devnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ if ! mkdir -p $CHAIN_DIR/$CHAINID 2>/dev/null; then
exit 1
fi

if ! command -v fairyringclient 2>&1 >/dev/null
then
echo "fairyringclient could not be found. Aborting..."
exit 1
fi

if [ ! -f "$HOME/.fairyringclient/config.yml" ]; then
fairyringclient config init
fi

cp "$HOME/.fairyringclient/config.yml" "$HOME/.fairyringclient/config.yml.backup"
cp ./scripts/devnet/fairyringclient_config.yml "$HOME/.fairyringclient/config.yml"

echo "Initializing $CHAINID ..."
$BINARY init devnet --home $CHAIN_DIR/$CHAINID --default-denom ufairy --chain-id=$CHAINID &> /dev/null

Expand Down

0 comments on commit 7dfb39e

Please sign in to comment.