Skip to content

Commit

Permalink
Add update fairyringclient config to devnet start script
Browse files Browse the repository at this point in the history
  • Loading branch information
p0p3yee committed Oct 11, 2024
1 parent b944bb4 commit 3fa467d
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 3fa467d

Please sign in to comment.