From b8cef0b1cd913719b839394fdd381b0cfe27b83f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 4 Jan 2020 19:17:03 -0500 Subject: [PATCH] prometheus-node-exporter: update init.d/conf.d --- sr.ht/prometheus-node-exporter/APKBUILD | 3 +++ sr.ht/prometheus-node-exporter/prometheus-node-exporter.initd | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sr.ht/prometheus-node-exporter/APKBUILD b/sr.ht/prometheus-node-exporter/APKBUILD index 8d2732e..765a6d4 100644 --- a/sr.ht/prometheus-node-exporter/APKBUILD +++ b/sr.ht/prometheus-node-exporter/APKBUILD @@ -30,9 +30,12 @@ package() { cd "$builddir" mkdir -p "$pkgdir"/usr/bin mkdir -p "$pkgdir"/etc/init.d + mkdir -p "$pkgdir"/etc/conf.d install -Dm755 node_exporter "$pkgdir"/usr/bin/prometheus_node_exporter install -Dm755 "$srcdir"/prometheus-node-exporter.initd \ "$pkgdir"/etc/init.d/prometheus-node-exporter + install -Dm644 "$srcdir"/prometheus-node-exporter.confd \ + "$pkgdir"/etc/conf.d/prometheus-node-exporter } sha512sums="cf2b854fbec1ba39b18432cdc11ab507ebc5b2828e6b34b4f49af9b949fcd365cb3e5eb1e265d0825783810c6b1572a8b3512ec27a46e5c83f89a505590159c0 prometheus-node-exporter-0.18.1.tar.gz diff --git a/sr.ht/prometheus-node-exporter/prometheus-node-exporter.initd b/sr.ht/prometheus-node-exporter/prometheus-node-exporter.initd index 83932da..954460a 100644 --- a/sr.ht/prometheus-node-exporter/prometheus-node-exporter.initd +++ b/sr.ht/prometheus-node-exporter/prometheus-node-exporter.initd @@ -7,7 +7,7 @@ command_args="--web.listen-address=$prometheus_node_exporter_web_listen_address" start_pre() { [ -n "$output_log" ] && checkpath -f "$output_path" \ - -m 644 -o prometheus:prometheus + -m 644 -o prometheus:prometheus || true [ -n "$error_log" ] && checkpath -f "$error_path" \ - -m 644 -o prometheus:prometheus + -m 644 -o prometheus:prometheus || true } -- 2.45.2