Skip to content

Commit

Permalink
Custom chain ID from env
Browse files Browse the repository at this point in the history
  • Loading branch information
levackt committed Jul 19, 2022
1 parent c6d3e91 commit 9603773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions deployment/docker/bootstrap/bootstrap_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ if [ ! -e "$file" ]; then
rm -rf ~/.secretd/*
rm -rf /opt/secret/.sgx_secrets/*

if [ -z "${CHAINID}" ]; then
chain_id="$CHAINID"
else
chain_id="supernova-1"
fi
chain_id=${CHAINID:-supernova-1}

mkdir -p ./.sgx_secrets
secretd config chain-id "$chain_id"
Expand Down
6 changes: 1 addition & 5 deletions deployment/docker/devimage/bootstrap_init_no_stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ then
rm -rf ~/.secretd/*
rm -rf /opt/secret/.sgx_secrets/*

if [ -z "${CHAINID}" ]; then
chain_id="$CHAINID"
else
chain_id="secretdev-1"
fi
chain_id=${CHAINID:-secretdev-1}

mkdir -p ./.sgx_secrets
secretd config chain-id "$chain_id"
Expand Down

0 comments on commit 9603773

Please sign in to comment.