Export all vars defined in /etc/default/telegraf (#3981)
This keeps the format of this file the same between systemd and sysvinit.
This commit is contained in:
parent
7bfcd87e83
commit
8b269c4e87
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue