Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias K <6317548+theCalcaholic@users.noreply.github.com>2022-03-29 02:27:57 +0300
committerTobias K <6317548+theCalcaholic@users.noreply.github.com>2022-03-29 02:27:57 +0300
commite364fe86c8616356ee8a04afe59ab91b293572df (patch)
tree40a16dbd9e1383390286dc0ced83acb58bf812d5
parent6e8d9a94cc039124438bc9e4585e78c013b1ca41 (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.sh1
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