Skip to content

Commit

Permalink
fix env var
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank committed May 21, 2024
1 parent 53dfdf9 commit 6fee191
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ansible/archival-snapshots/resources/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ sleep 30
echo "Forest process started with PID: $FOREST_NODE_PID"

ADMIN_TOKEN=$(cat admin_token)
FULLNODE_API_INFO="${ADMIN_TOKEN}:/ip4/127.0.0.1/tcp/3456/http"

echo "export FULLNODE_API_INFO='${FULLNODE_API_INFO}'" > /tmp/set_env.sh
source /tmp/set_env.sh
export FULLNODE_API_INFO="$ADMIN_TOKEN:/ip4/127.0.0.1/tcp/3456/http"
echo "USING TOKEN: $FULLNODE_API_INFO"

echo "Waiting for forest to sync to latest network head"
$FOREST_CLI sync wait
Expand Down

0 comments on commit 6fee191

Please sign in to comment.