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.

(cherry picked from commit 00203fa)
  • Loading branch information
danielnelson committed Apr 6, 2018
1 parent 38075d8 commit 83c560a
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 83c560a

Please sign in to comment.