diff options
author | Tobias K <6317548+theCalcaholic@users.noreply.github.com> | 2022-03-29 02:27:57 +0300 |
---|---|---|
committer | Tobias K <6317548+theCalcaholic@users.noreply.github.com> | 2022-03-29 02:27:57 +0300 |
commit | e364fe86c8616356ee8a04afe59ab91b293572df (patch) | |
tree | 40a16dbd9e1383390286dc0ced83acb58bf812d5 | |
parent | 6e8d9a94cc039124438bc9e4585e78c013b1ca41 (diff) |
metrics.sh: Fix undefined variablefeature/custom-prometheus-exporter-curated2
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r-- | bin/ncp/SYSTEM/metrics.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ncp/SYSTEM/metrics.sh b/bin/ncp/SYSTEM/metrics.sh index a984ff4b..7674d01f 100644 --- a/bin/ncp/SYSTEM/metrics.sh +++ b/bin/ncp/SYSTEM/metrics.sh @@ -44,6 +44,7 @@ metrics_services() { if [[ "$cmd" =~ (start|stop|restart|reload|status) ]] then rc1=0 + rc2=0 service prometheus-node-exporter "$cmd" || rc1=$? service ncp-metrics-exporter "$cmd" || rc2=$? [[ $rc1 > $rc2 ]] && return $rc1 |