[proxy] Remove spurious output from proxy-(env|config)

`docker log` outputs an error if stdout is closed before it is done, so
silence that
This commit is contained in:
Paul Bellamy committed 2015-06-17 11:53:28 +01:00
1 parent 71f19469ab
commit b1f43f0d7c
1 file changed
+1 -1
+1 -1
View File
@@ -892,7 +892,7 @@ proxy_args() {
}
proxy_addr() {
if addr=$(docker logs weaveproxy | head -n3 | grep -oE "proxy listening on .*"); then
if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | head -n3 | grep -oE "proxy listening on .*"); then
addr=${addr##* }
host=${addr%:*}
[ "$host" = "0.0.0.0" ] && host=$PROXY_HOST