Skip to content

Commit

Permalink
checking env.sh file
Browse files Browse the repository at this point in the history
  • Loading branch information
baabeetaa committed May 25, 2023
1 parent 27e5d65 commit b903620
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions env.sample.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CHAIN_REGISTRY_INI_URL=https://raw.githubusercontent.com/notional-labs/cosmosia/main/data/chain_registry.ini
9 changes: 8 additions & 1 deletion load_balancer/docker_service_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@

chain_name="$1"
rpc_service_name="$2"
source ../env.sh

if [ -f "../env.sh" ]; then
source ../env.sh
else
echo "../env.sh file does not exist."
exit
fi


if [[ -z $chain_name ]]; then
echo "No chain_name. usage eg., ./docker_service_create.sh cosmoshub"
Expand Down
1 change: 0 additions & 1 deletion proxy/generate_upstream.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
source ../env.sh
SERVICES=$(curl -s "$CHAIN_REGISTRY_INI_URL" |grep -E "\[.*\]" | sed 's/^\[\(.*\)\]$/\1/')


Expand Down
7 changes: 6 additions & 1 deletion rpc/docker_service_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
# eg., ./docker_service_create.sh cosmoshub

chain_name="$1"
source ../env.sh
if [ -f "../env.sh" ]; then
source ../env.sh
else
echo "../env.sh file does not exist."
exit
fi

if [[ -z $chain_name ]]; then
echo "No chain_name. usage eg., ./docker_service_create.sh cosmoshub"
Expand Down
7 changes: 6 additions & 1 deletion snapshot/docker_service_create_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
# eg., ./docker_service_create_snapshost.sh cosmoshub

chain_name="$1"
source ../env.sh
if [ -f "../env.sh" ]; then
source ../env.sh
else
echo "../env.sh file does not exist."
exit
fi

if [[ -z $chain_name ]]; then
echo "No chain_name. usage eg., ./docker_service_create_snapshost.sh cosmoshub"
Expand Down
7 changes: 6 additions & 1 deletion statesync/docker_service_create_statesync_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
# eg., ./docker_service_create_statesync_snapshot.sh cosmoshub

chain_name="$1"
source ../env.sh
if [ -f "../env.sh" ]; then
source ../env.sh
else
echo "../env.sh file does not exist."
exit
fi

if [[ -z $chain_name ]]; then
echo "No chain_name. usage eg., ./docker_service_create_statesync_snapshot.sh cosmoshub"
Expand Down

0 comments on commit b903620

Please sign in to comment.