Get tox port from app script
This commit is contained in:
parent
b9e1e4b72d
commit
b77141a7e8
|
@ -640,9 +640,9 @@ function mesh_tox_node {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
||||||
TOX_PORT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
TOX_PORT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
||||||
else
|
else
|
||||||
TOX_PORT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
TOX_PORT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
||||||
fi
|
fi
|
||||||
if [ ${#TOX_PORT_MAIN} -gt 2 ]; then
|
if [ ${#TOX_PORT_MAIN} -gt 2 ]; then
|
||||||
TOX_PORT=$TOX_PORT_MAIN
|
TOX_PORT=$TOX_PORT_MAIN
|
||||||
|
|
Loading…
Reference in New Issue