aboutsummaryrefslogtreecommitdiffstats
path: root/testing/grafana/grafana.pre-install
diff options
context:
space:
mode:
authorKonstantin Kulikov <k.kulikov2@gmail.com>2019-08-02 18:43:05 +0000
committerLeo <thinkabit.ukim@gmail.com>2019-08-11 21:41:26 -0300
commite28d2e1f07e57e163b15dba7de2efc372cc06c5a (patch)
treee933a94ecb3383a2b09813620abc37324ec3ac19 /testing/grafana/grafana.pre-install
parent292c4bf77ed44d27e54df201fa5b89867888ca4e (diff)
downloadaports-e28d2e1f07e57e163b15dba7de2efc372cc06c5a.tar.gz
aports-e28d2e1f07e57e163b15dba7de2efc372cc06c5a.tar.bz2
aports-e28d2e1f07e57e163b15dba7de2efc372cc06c5a.tar.xz
testing/grafana: new aport
Diffstat (limited to 'testing/grafana/grafana.pre-install')
-rw-r--r--testing/grafana/grafana.pre-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/grafana/grafana.pre-install b/testing/grafana/grafana.pre-install
new file mode 100644
index 0000000000..fee2e76df9
--- /dev/null
+++ b/testing/grafana/grafana.pre-install
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+name=grafana
+
+addgroup -S "$name" 2>/dev/null
+adduser -S -D -H -h "/var/lib/$name" -s /sbin/nologin -G "$name" -g "$name" "$name" 2>/dev/null
+
+exit 0