From: Sam Saffron Date: Thu, 16 Jan 2014 00:43:14 +0000 (-0800) Subject: eval my way out of env var nightmare X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9a38bcc357f7774f9c39eca56dc6c8cfe6e351fa;p=discourse_docker.git eval my way out of env var nightmare --- diff --git a/launcher b/launcher index d35ab09..c43f41c 100755 --- a/launcher +++ b/launcher @@ -135,7 +135,7 @@ case "$command" in fi run_command="$run_command /pups/bin/pups --stdin" - (exec echo "$input" | docker run $env -e DOCKER_HOST_IP=$docker_ip -cidfile $cidbootstrap -i -a stdin -a stdout -a stderr $volumes $image \ + (exec echo "$input" | eval docker run $env -e DOCKER_HOST_IP=$docker_ip -cidfile $cidbootstrap -i -a stdin -a stdout -a stderr $volumes $image \ /bin/bash -c "$run_command") \ || (docker rm `cat $cidbootstrap` && rm $cidbootstrap) @@ -205,7 +205,7 @@ case "$command" in exit 1 fi - docker run $env -e DOCKER_HOST_IP=$docker_ip -name $config -cidfile $cidfile $ports \ + eval docker run $env -e DOCKER_HOST_IP=$docker_ip -name $config -cidfile $cidfile $ports \ -d $volumes $local_discourse/$config /usr/bin/runsvdir -P /etc/service exit 0