aboutsummaryrefslogtreecommitdiff
path: root/apks/prometheus-postgres-exporter/prometheus-postgres-exporter.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'apks/prometheus-postgres-exporter/prometheus-postgres-exporter.pre-install')
-rwxr-xr-xapks/prometheus-postgres-exporter/prometheus-postgres-exporter.pre-install6
1 files changed, 6 insertions, 0 deletions
diff --git a/apks/prometheus-postgres-exporter/prometheus-postgres-exporter.pre-install b/apks/prometheus-postgres-exporter/prometheus-postgres-exporter.pre-install
new file mode 100755
index 0000000..120995c
--- /dev/null
+++ b/apks/prometheus-postgres-exporter/prometheus-postgres-exporter.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+addgroup -S prometheus 2>/dev/null
+adduser -S -D -h /var/lib/prometheus -s /sbin/nologin -G prometheus -g prometheus prometheus 2>/dev/null
+
+exit 0