~dricottone/huttese-apk

ref: 19ae9ecb7fbd665e7d5335d4f364aa2eb70a8f2d huttese-apk/sr.ht/pushgateway/pushgateway.pre-install -rw-r--r-- 247 bytes
19ae9ecb — Drew DeVault dispatch.sr.ht: overhaul init files 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