M sr.ht/prometheus-node-exporter/APKBUILD => sr.ht/prometheus-node-exporter/APKBUILD +3 -0
@@ 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
M sr.ht/prometheus-node-exporter/prometheus-node-exporter.initd => sr.ht/prometheus-node-exporter/prometheus-node-exporter.initd +2 -2
@@ 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
}