Skip to content

Commit

Permalink
Export all vars defined in /etc/default/telegraf (influxdata#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 and otherpirate committed Mar 15, 2019
1 parent ddb0c7d commit 2f26e08
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 2f26e08

Please sign in to comment.