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>2021-08-03 01:26:04 +0300
committernachoparker <nacho@ownyourbits.com>2021-08-10 02:16:38 +0300
commitb8402459b1e19a1a237e0f76a0b872fffbf78f8e (patch)
tree05bbc8f5bec4a2fb2eaabb342513769f785adf14
parentfb102d233c3abeba508adf71de1c23a9b0cc0c15 (diff)
metrics.sh: Fix inverted is_active resultv1.37.6
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r--bin/ncp/SYSTEM/metrics.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp/SYSTEM/metrics.sh b/bin/ncp/SYSTEM/metrics.sh
index 6e2eb0c1..24963a85 100644
--- a/bin/ncp/SYSTEM/metrics.sh
+++ b/bin/ncp/SYSTEM/metrics.sh
@@ -1,8 +1,8 @@
#!/bin/bash
is_active() {
- systemctl is-active -q prometheus-node-exporter || return 0
- return 1
+ systemctl is-active -q prometheus-node-exporter || return 1
+ return 0
}
tmpl_metrics_enabled() {