Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pkgs
APKBUILDs
Commits
f1d42122
Commit
f1d42122
authored
Jun 16, 2022
by
roshless
Browse files
prometheus-ping-exporter: add post upgrade with setcap
parent
858b1960
Pipeline
#120
passed with stages
in 2 minutes and 32 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
prometheus-ping-exporter/APKBUILD
View file @
f1d42122
...
...
@@ -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"
...
...
prometheus-ping-exporter/prometheus-ping-exporter.post-upgrade
0 → 100644
View file @
f1d42122
#!/bin/sh
setcap cap_net_raw+eip /usr/bin/ping_exporter
exit
0
prometheus-ping-exporter/prometheus-ping-exporter.pre-install
View file @
f1d42122
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment