Export all vars defined in /etc/default/telegraf (#3981)

This keeps the format of this file the same between systemd and
sysvinit.

(cherry picked from commit 00203fa889)
This commit is contained in:
Daniel Nelson 2018-04-06 13:17:24 -07:00 committed by Daniel Nelson
parent 38075d8ff8
commit 83c560af22
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 2 additions and 0 deletions

View File

@ -34,7 +34,9 @@ fi
DEFAULT=/etc/default/telegraf DEFAULT=/etc/default/telegraf
if [ -r $DEFAULT ]; then if [ -r $DEFAULT ]; then
set -o allexport
source $DEFAULT source $DEFAULT
set +o allexport
fi fi
if [ -z "$STDOUT" ]; then if [ -z "$STDOUT" ]; then