[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:
1 parent
71f19469ab
commit
b1f43f0d7c
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user