diff options
author | nixfloyd <nixfloyd@gmail.com> | 2020-01-09 01:40:10 +0000 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-09 17:45:18 +0100 |
commit | 38ee73f16a71fa42a6f81b2dbe43a8a949d7a6d1 (patch) | |
tree | 2e64fff2922355ee61c319ab807c8de8a2179d27 /testing | |
parent | 1ede2429aa9860742d0295ca99d2af40b0adfce2 (diff) | |
download | aports-38ee73f16a71fa42a6f81b2dbe43a8a949d7a6d1.tar.bz2 aports-38ee73f16a71fa42a6f81b2dbe43a8a949d7a6d1.tar.xz |
testing/prometheus-snmp-exporter: fix lint warnings
Diffstat (limited to 'testing')
3 files changed, 4 insertions, 8 deletions
diff --git a/testing/prometheus-snmp-exporter/APKBUILD b/testing/prometheus-snmp-exporter/APKBUILD index 64c0a253f3..09b25f2c8f 100644 --- a/testing/prometheus-snmp-exporter/APKBUILD +++ b/testing/prometheus-snmp-exporter/APKBUILD @@ -7,9 +7,8 @@ pkgdesc="Description" url="https://github.com/prometheus/snmp_exporter" arch="all" license="Apache-2.0" -depends="" makedepends="go net-snmp-dev" -install="$pkgname.pre-install $pkgname.post-install" +install="$pkgname.pre-install" subpackages="$pkgname-openrc" source=" $pkgname-$pkgver.tar.gz::https://github.com/prometheus/snmp_exporter/archive/v$pkgver.tar.gz diff --git a/testing/prometheus-snmp-exporter/prometheus-snmp-exporter.post-install b/testing/prometheus-snmp-exporter/prometheus-snmp-exporter.post-install deleted file mode 100644 index 0586fcd5c5..0000000000 --- a/testing/prometheus-snmp-exporter/prometheus-snmp-exporter.post-install +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# add something which happends after install - diff --git a/testing/prometheus-snmp-exporter/prometheus-snmp-exporter.pre-install b/testing/prometheus-snmp-exporter/prometheus-snmp-exporter.pre-install index 46079e0c04..9a820759b8 100644 --- a/testing/prometheus-snmp-exporter/prometheus-snmp-exporter.pre-install +++ b/testing/prometheus-snmp-exporter/prometheus-snmp-exporter.pre-install @@ -1,4 +1,5 @@ #!/bin/sh - -# add something which happends before install +grep '^prometheus:' /etc/group >/dev/null || addgroup -S prometheus 2>/dev/null +grep '^prometheus:' /etc/passwd >/dev/null || adduser -SDh/var/lib/prometheus \ + -s/sbin/nologin -Gprometheus -gprometheus prometheus prometheus 2>/dev/null |