aboutsummaryrefslogtreecommitdiff
path: root/apks/prometheus-postgres-exporter/prometheus-postgres-exporter.pre-install
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-12 22:07:14 +0100
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-12 22:12:00 +0100
commiteed21034efae03ee661e06122f96dc01e53afaa4 (patch)
tree77d08583f538a9f87bc1a34e6fe29c3e2f3fd13a /apks/prometheus-postgres-exporter/prometheus-postgres-exporter.pre-install
parentae0a676dd82ad2c842437ee3cd36526f4951f998 (diff)
downloadapkbuilds-eed21034efae03ee661e06122f96dc01e53afaa4.tar.gz
apkbuilds-eed21034efae03ee661e06122f96dc01e53afaa4.tar.bz2
apkbuilds-eed21034efae03ee661e06122f96dc01e53afaa4.zip
feat: Add prometheus-postgres-exporter
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