-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18ee0c0
commit 7a8c5aa
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Update FULLNODE_API_INFO function | ||
update_fullnode_api_info() { | ||
ADMIN_TOKEN=$(cat admin_token) | ||
export FULLNODE_API_INFO="$ADMIN_TOKEN:/ip4/127.0.0.1/tcp/3456/http" | ||
} | ||
|
||
# Execute update_fullnode_api_info | ||
update_fullnode_api_info | ||
echo "Using FULLNODE API: $FULLNODE_API_INFO" | ||
|
||
# Source this script to update the variable in the current shell | ||
source "$0" |