Commit f1d42122 authored by roshless's avatar roshless
Browse files

prometheus-ping-exporter: add post upgrade with setcap

parent 858b1960
Pipeline #120 passed with stages
in 2 minutes and 32 seconds
......@@ -2,7 +2,7 @@
pkgname=prometheus-ping-exporter
_pkgname=ping_exporter
pkgver=1.0.0
pkgrel=4
pkgrel=5
pkgdesc="Prometheus exporter for machine metrics"
url="https://github.com/czerwonk/ping_exporter"
license="MIT"
......
#!/bin/sh
setcap cap_net_raw+eip /usr/bin/ping_exporter
exit 0
......@@ -2,5 +2,6 @@
addgroup -S prometheus 2>/dev/null
adduser -S -D -h /var/lib/prometheus -s /sbin/nologin -G prometheus -g prometheus prometheus 2>/dev/null
setcap cap_net_raw+eip /usr/bin/ping_exporter
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment