aboutsummaryrefslogtreecommitdiffstats
path: root/community/influxdb/influxdb.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'community/influxdb/influxdb.pre-install')
-rw-r--r--community/influxdb/influxdb.pre-install8
1 files changed, 3 insertions, 5 deletions
diff --git a/community/influxdb/influxdb.pre-install b/community/influxdb/influxdb.pre-install
index 3fbf12b1d4..fdb2955f16 100644
--- a/community/influxdb/influxdb.pre-install
+++ b/community/influxdb/influxdb.pre-install
@@ -1,10 +1,8 @@
#!/bin/sh
-username=influxdb
-groupname="$username"
+name=influxdb
-addgroup -S "$groupname" 2>/dev/null
-adduser -S -D -H -h /var/lib/"$username" -s /sbin/nologin -G "$groupname" \
- -g "$groupname" "$username" 2>/dev/null
+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