Skip to content

Commit

Permalink
Export all vars defined in /etc/default/telegraf (#3981)
Browse files Browse the repository at this point in the history
This keeps the format of this file the same between systemd and
sysvinit.
  • Loading branch information
danielnelson authored Apr 6, 2018
1 parent 7bfcd87 commit 8b269c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b269c4

Please sign in to comment.