Skip to content

Commit

Permalink
remove set_env sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank committed Jun 6, 2024
1 parent 10678e8 commit 18ee0c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
6 changes: 4 additions & 2 deletions ansible/archival-snapshots/resources/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ sleep 30
echo "Forest process started with PID: $FOREST_NODE_PID"

# Set required env variables
sh set_env.sh
ADMIN_TOKEN=$(cat admin_token)
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 All @@ -48,7 +50,7 @@ LATEST_EPOCH=$($FOREST_CLI sync status | grep "Height:" | awk '{print $2}')
echo "Latest Height: $LATEST_EPOCH"

while ((LATEST_EPOCH - CURRENT_EPOCH > 30000)); do
echo "USING TOKEN: $FULLNODE_API_INFO"
export FULLNODE_API_INFO="$ADMIN_TOKEN:/ip4/127.0.0.1/tcp/3456/http"
NEW_EPOCH=$((CURRENT_EPOCH + 30000))
echo "Next Height: $NEW_EPOCH"

Expand Down
11 changes: 0 additions & 11 deletions ansible/archival-snapshots/resources/set_env.sh

This file was deleted.

0 comments on commit 18ee0c0

Please sign in to comment.