#!/bin/bash
set -e
RETRIES=${RETRIES:-60}
if [[ ! -z "$URL" ]]; then
# get the addrs from the URL provided
ADDRESSES=$(curl --fail --show-error --silent --retry-connrefused --retry $RETRIES --retry-delay 5 $URL)
# set the env
export DATA_TRANSPORT_LAYER__ADDRESS_MANAGER=$(echo $ADDRESSES | jq -r '.AddressManager')
fi
# go
exec node dist/src/services/run.js
-
Liam Horne authored
* build: add set -e to various bash scripts that we want to error loudly * build: use sh and remove set -e for geth.sh
b2724d37