fix: properly retrieve ports list

This commit is contained in:
Jose Diaz-Gonzalez
2017-04-23 12:41:41 -06:00
committed by Michael Hobbs
parent 006eb452f1
commit 7fd32fb3e8
2 changed files with 9 additions and 8 deletions

View File

@@ -68,10 +68,9 @@ network-compute-container-ports() {
for p in ${DOKKU_DOCKERFILE_PORTS[*]};do
if [[ ! "$p" =~ .*udp.* ]]; then
# set port to first non-udp port
local p=${p//\/tcp}
local PORT=${PORT:="$p"}
p=${p//\/tcp}
fi
PORTS+=" $PORT "
PORTS+="$p "
done
fi