Pass arguments to td-agent with unquoted spaces

This commit is contained in:
Satnam Singh 2014-10-20 16:19:41 -07:00
parent b7722a631d
commit 01fa0616fd

View File

@ -26,4 +26,4 @@ OUTER_HOST=`tail -n 1 /outerhost | awk '{print $3}'`
# service IPs are done.
# Adjust the name of the host machine for %ES_HOST%. HACK!
sed -i -e "s/\%ES_HOST\%/${OUTER_HOST}/" /etc/td-agent/td-agent.conf
/usr/sbin/td-agent $@
/usr/sbin/td-agent "$@"