Skip to content

Commit

Permalink
fix injective-testnet...
Browse files Browse the repository at this point in the history
  • Loading branch information
baabeetaa committed Oct 11, 2023
1 parent 68d9e4a commit a3ac465
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions rpc/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ echo "config=$config"
# load config
eval "$(curl -s "$config" |sed 's/ = /=/g')"

# fix injective close-source
if [[ $git_repo == "https://github.com/InjectiveLabs/injective-core" ]]; then
gh_access_token="$(curl -s "http://tasks.web_config/config/gh_access_token")"
git_repo="https://${gh_access_token}@github.com/InjectiveLabs/injective-core"
fi

# write env vars to bash file, so that cronjobs or other scripts could know
cat <<EOT >> $HOME/env.sh
chain_name="$chain_name"
Expand Down
10 changes: 8 additions & 2 deletions snapshot/snapshot_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

chain_name="$1"

if [[ -z $chain_name ]]
then
if [[ -z $chain_name ]]; then
echo "No chain_name. usage eg., ./snapshost_run.sh cosmoshub"
loop_forever
fi
Expand Down Expand Up @@ -47,6 +46,13 @@ eval "${str_snapshot_cfg}"
# figure out IP of the snapshot_storage_node
snapshot_storage_node_ip=$(curl -s "http://tasks.web_config/node_ip/${snapshot_storage_node}")

# fix injective close-source
if [[ $git_repo == "https://github.com/InjectiveLabs/injective-core" ]]; then
gh_access_token="$(curl -s "http://tasks.web_config/config/gh_access_token")"
git_repo="https://${gh_access_token}@github.com/InjectiveLabs/injective-core"
fi


# write chain info to bash file, so that cronjob could know
cat <<EOT >> $HOME/env.sh
chain_name="$chain_name"
Expand Down

0 comments on commit a3ac465

Please sign in to comment.