aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegraf/telegraf.pre-install
blob: bba27a5a3f410f1e1b503f23bc605b488b43567b (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

username=telegraf
groupname="$username"

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

exit 0