nextcloudpi/updates/1.47.0.sh
Tobias K 9563367363
library.sh: Prevent systemd pager from blocking script execution
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2022-04-13 11:01:40 +02:00

22 lines
379 B
Bash

#!/bin/bash
set -e
source /usr/local/etc/library.sh
# Stop metrics services if running
for svc in prometheus-node-exporter ncp-metrics-exporter
do
service "$svc" status || [[ $? -ne 4 ]] || continue
service "$svc" stop
done
# Reinstall metrics services
install_app metrics
is_active_app metrics && (
export METRICS_SKIP_PASSWORD_CONFIG=true
run_app metrics
)
exit 0