~dricottone/huttese-apk

ref: 38f92e5a0b95e55fabc415268e5ab5b28223341b huttese-apk/sr.ht/prometheus-sql-exporter/prometheus-sql-exporter.pre-install -rw-r--r-- 247 bytes
38f92e5a — Drew DeVault todo.sr.ht: add -nginx subpackage 4 years ago
                                                                                
15b1e44b Drew DeVault
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