This commit is contained in:
Bob Mottram 2016-04-12 09:53:12 +01:00
parent b58d932fda
commit cd478d0457
1 changed files with 7 additions and 7 deletions

View File

@ -422,7 +422,7 @@ function mesh_firewall {
function mesh_tox_node {
# obtain commits from the main file
if [ -f /usr/loca/bin/${PROJECT_NAME} ]; then
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
TOX_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOX_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
else
TOX_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOX_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
@ -435,7 +435,7 @@ function mesh_tox_node {
exit 76325
fi
if [ -f /usr/loca/bin/${PROJECT_NAME} ]; then
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
TOXID_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXID_REPO=" | head -n 1 | awk -F "'" '{print $2}')
else
TOXID_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXID_REPO=" | head -n 1 | awk -F "'" '{print $2}')
@ -448,7 +448,7 @@ function mesh_tox_node {
exit 78252
fi
if [ -f /usr/loca/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}')
else
TOX_PORT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOX_PORT=" | head -n 1 | awk -F "'" '{print $2}')
@ -461,7 +461,7 @@ function mesh_tox_node {
exit 32856
fi
if [ -f /usr/loca/bin/${PROJECT_NAME} ]; then
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
TOX_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOX_REPO=" | head -n 1 | awk -F "'" '{print $2}')
else
TOX_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOX_REPO=" | head -n 1 | awk -F "'" '{print $2}')
@ -564,7 +564,7 @@ function mesh_tox_node {
function mesh_tox_client {
# obtain commits from the main file
if [ -f /usr/loca/bin/freedombone ]; then
if [ -f /usr/local/bin/freedombone ]; then
TOXIC_COMMIT_MAIN=$(cat /usr/local/bin/freedombone | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
else
TOXIC_COMMIT_MAIN=$(cat /usr/bin/freedombone | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
@ -590,7 +590,7 @@ function mesh_tox_client {
function mesh_zeronet {
# obtain commits from the main file
if [ -f /usr/loca/bin/${PROJECT_NAME} ]; then
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
ZERONET_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "ZERONET_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
else
ZERONET_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "ZERONET_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
@ -603,7 +603,7 @@ function mesh_zeronet {
exit 37046
fi
if [ -f /usr/loca/bin/${PROJECT_NAME} ]; then
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
ZERONET_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "ZERONET_REPO=" | head -n 1 | awk -F "'" '{print $2}')
else
ZERONET_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "ZERONET_REPO=" | head -n 1 | awk -F "'" '{print $2}')