From acb1171422e8cc0ade4cc8cb0889b20cb52d9151 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 6 Sep 2018 09:29:56 -0700 Subject: [PATCH] Add -e option --- net/init-metrics.sh | 55 +++++++++++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/net/init-metrics.sh b/net/init-metrics.sh index 04da893de..621659363 100755 --- a/net/init-metrics.sh +++ b/net/init-metrics.sh @@ -11,12 +11,14 @@ usage() { echo "Error: $*" fi cat <> "$configFile" + SOLANA_METRICS_CONFIG="db=$netBasename,u=scratch_writer,p=topsecret" +fi + +echo "export SOLANA_METRICS_CONFIG=\"$SOLANA_METRICS_CONFIG\"" >> "$configFile" exit 0