1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/prometheus/prometheus.pre-install
2019-12-04 17:21:34 +01:00

4 lines
247 B
Bash

#!/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