From 00203fa889d217dc5e9015a154eb81c2e1694bba Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Fri, 6 Apr 2018 13:17:24 -0700 Subject: [PATCH] Export all vars defined in /etc/default/telegraf (#3981) This keeps the format of this file the same between systemd and sysvinit. --- scripts/init.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/init.sh b/scripts/init.sh index e05fd79ee..668dc549e 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -34,7 +34,9 @@ fi DEFAULT=/etc/default/telegraf if [ -r $DEFAULT ]; then + set -o allexport source $DEFAULT + set +o allexport fi if [ -z "$STDOUT" ]; then