aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegraf/telegraf.pre-install
diff options
context:
space:
mode:
authorKonstantin Kulikov <k.kulikov2@gmail.com>2019-08-03 04:33:08 +0000
committerLeo <thinkabit.ukim@gmail.com>2019-08-03 18:05:41 -0300
commit22a5b24484b702f61e8a43ef67fa42e2b770f8f8 (patch)
tree8c1fb4c18e8ae2fc0799cd6fd14f52303071b3c4 /testing/telegraf/telegraf.pre-install
parent90358ef3ee8b3b935b21b689f7486b6edb8e81e1 (diff)
downloadaports-22a5b24484b702f61e8a43ef67fa42e2b770f8f8.tar.bz2
aports-22a5b24484b702f61e8a43ef67fa42e2b770f8f8.tar.xz
testing/telegraf: upgrade to 1.11.3
switch from glide to dep remove pkgusers/groups - they're not needed during build simplify build script simplify init.d script move config from /etc/telegraf/telegraf.conf to /etc/telegraf.conf and /etc/telegraf.conf.d remove broken logrotate config, it missed action to force telegraf to reopen log file. log rotation can be done via telegraf config add conf.d file
Diffstat (limited to 'testing/telegraf/telegraf.pre-install')
-rw-r--r--testing/telegraf/telegraf.pre-install8
1 files changed, 3 insertions, 5 deletions
diff --git a/testing/telegraf/telegraf.pre-install b/testing/telegraf/telegraf.pre-install
index bba27a5a3f..537b7e2522 100644
--- a/testing/telegraf/telegraf.pre-install
+++ b/testing/telegraf/telegraf.pre-install
@@ -1,10 +1,8 @@
#!/bin/sh
-username=telegraf
-groupname="$username"
+name=telegraf
-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/empty -s /bin/nologin -G $name -g $name $name 2>/dev/null
exit 0