diff --git a/TestTestNet/netstats-server/install.sh b/TestTestNet/netstats-server/install.sh index e84f88c..86ddbc2 100644 --- a/TestTestNet/netstats-server/install.sh +++ b/TestTestNet/netstats-server/install.sh @@ -14,10 +14,6 @@ lsb_release -a echo "===== memory usage info:" free -m -echo "===== downloading common.vars" -curl -sLO "https://raw.githubusercontent.com/oraclesorg/test-templates/${TEMPLATES_BRANCH}/TestTestNet/common.vars" -source common.vars - EXT_IP="$(curl ifconfig.co)" echo "===== external ip: ${EXT_IP}" @@ -26,6 +22,10 @@ NETSTATS_SERVER="localhost" INSTALL_CONFIG_REPO="https://raw.githubusercontent.com/oraclesorg/test-templates/${TEMPLATES_BRANCH}/TestTestNet/netstats-server" echo "===== repo base path: ${INSTALL_CONFIG_REPO}" +echo "===== downloading common.vars" +curl -sLO "https://raw.githubusercontent.com/oraclesorg/test-templates/${TEMPLATES_BRANCH}/TestTestNet/common.vars" +source common.vars + # this should be provided through env by azure template NETSTATS_SECRET="${NETSTATS_SECRET}" NODE_FULLNAME="${NODE_FULLNAME:-NetStat}"