aboutsummaryrefslogtreecommitdiffstats
path: root/testing/prometheus-snmp-exporter/prometheus-snmp-exporter.pre-install
blob: 9a820759b825587a72710d9f8b486c4b8deb22b7 (plain)
1
2
3
4
5
#!/bin/sh
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