diff options
author | Roshless <me@roshless.com> | 2021-07-25 23:50:47 +0200 |
---|---|---|
committer | dispatch <dispatch@listserv.local> | 2021-07-25 21:50:59 +0000 |
commit | adf882798198369548fdd996dd0e901899f5c40f (patch) | |
tree | 7537ed7173e136de46b9f44f3b2d58b6b783ab3f | |
parent | f9a693005c08b0b29cbeb9e1b8ab1f09380d2201 (diff) | |
download | aports-patches/3563.tar.gz aports-patches/3563.tar.bz2 aports-patches/3563.tar.xz |
testing/blackbox_exporter: do not create user if already existpatches/3563
-rw-r--r-- | testing/blackbox_exporter/blackbox_exporter.pre-install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/blackbox_exporter/blackbox_exporter.pre-install b/testing/blackbox_exporter/blackbox_exporter.pre-install index eeccb43ce2..004fd0bcb9 100644 --- a/testing/blackbox_exporter/blackbox_exporter.pre-install +++ b/testing/blackbox_exporter/blackbox_exporter.pre-install @@ -1,4 +1,4 @@ #!/bin/sh -addgroup -S prometheus 2>/dev/null -adduser -SDh/var/lib/prometheus \ +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 |