Preserve public network flag when testnet-edge is restarted
This commit is contained in:
parent
8bbc8343ff
commit
54cf9aaa1e
|
@ -218,7 +218,7 @@ sanity() {
|
|||
set -x
|
||||
NO_INSTALL_CHECK=1 \
|
||||
NO_VALIDATOR_SANITY=1 \
|
||||
ci/testnet-sanity.sh edge-testnet-solana-com gce us-west1-b
|
||||
ci/testnet-sanity.sh edge-testnet-solana-com gce -P us-west1-b
|
||||
)
|
||||
(
|
||||
echo "--- net.sh restart"
|
||||
|
|
|
@ -30,6 +30,12 @@ cloudProvider=$2
|
|||
[[ -n $netName ]] || usage ""
|
||||
[[ -n $cloudProvider ]] || usage "Cloud provider not specified"
|
||||
shift 2
|
||||
|
||||
maybePublicNetwork=
|
||||
if [[ $1 = -P ]]; then
|
||||
maybePublicNetwork=-P
|
||||
shift
|
||||
fi
|
||||
[[ -n $1 ]] || usage "zone1 not specified"
|
||||
|
||||
shutdown() {
|
||||
|
@ -54,7 +60,7 @@ trap shutdown EXIT INT
|
|||
set -x
|
||||
for zone in "$@"; do
|
||||
echo "--- $cloudProvider config [$zone]"
|
||||
timeout 5m net/"$cloudProvider".sh config -p "$netName" -z "$zone"
|
||||
timeout 5m net/"$cloudProvider".sh config $maybePublicNetwork -p "$netName" -z "$zone"
|
||||
net/init-metrics.sh -e
|
||||
echo "+++ $cloudProvider.sh info"
|
||||
net/"$cloudProvider".sh info
|
||||
|
|
Loading…
Reference in New Issue