aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoshless <me@roshless.com>2021-07-25 23:44:12 +0200
committerdispatch <dispatch@listserv.local>2021-07-25 21:52:18 +0000
commite496c35410ea52b4faf479a1642035de27be3608 (patch)
tree7537ed7173e136de46b9f44f3b2d58b6b783ab3f
parentf9a693005c08b0b29cbeb9e1b8ab1f09380d2201 (diff)
downloadaports-patches/3564.tar.gz
aports-patches/3564.tar.bz2
aports-patches/3564.tar.xz
testing/blackbox_exporter: do not create user if already existpatches/3564
-rw-r--r--testing/blackbox_exporter/blackbox_exporter.pre-install4
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