~dricottone/huttese-apk

ref: 68c0405cf4942799ca823b092b865e32dcff2545 huttese-apk/sr.ht/prometheus-node-exporter/prometheus-node-exporter.pre-install -rw-r--r-- 247 bytes
68c0405c — Drew DeVault dispatch.sr.ht: add -nginx subpackage 4 years ago
                                                                                
1
2
3
4
#!/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