diff --git a/helper/tt2-wrapper b/helper/tt2-wrapper index 578b2d1f..5c8f7e24 100755 --- a/helper/tt2-wrapper +++ b/helper/tt2-wrapper @@ -1,6 +1,8 @@ #!/bin/bash -if [ -r "${NGCP_PORTFILE:-/var/run/ngcpcfg.port}" ] ; then +NGCP_PORTFILE="${NGCP_PORTFILE:-/var/run/ngcpcfg.port}" + +if [ -r "${NGCP_PORTFILE}" ] ; then port=$(cat "${NGCP_PORTFILE}") else echo "ERROR: Couldn't read file ${NGCP_PORTFILE}" >&2