Minor script refactoring/refinement

This commit is contained in:
Michael Vines
2019-06-13 08:28:31 -07:00
parent fc34687687
commit efe676bc94
4 changed files with 19 additions and 16 deletions

View File

@ -1,13 +1,16 @@
#!/bin/bash -ex
#!/usr/bin/env bash
#
# (Re)starts the local metrics
#
set -e
cd "$(dirname "$0")"
# Stop if already running
./stop.sh
set -x
: "${INFLUXDB_IMAGE:=influxdb:1.6}"
: "${GRAFANA_IMAGE:=solanalabs/grafana:stable}"
: "${GRAFANA_IMAGE:=grafana/grafana:5.2.3}"
@ -48,5 +51,3 @@ docker run \
sleep 5
./status.sh
exit 0