|
@@ -221,9 +221,9 @@ function mesh_avahi {
|
221
|
221
|
function mesh_babel_client {
|
222
|
222
|
# TODO to be fixed
|
223
|
223
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
224
|
|
- TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
|
224
|
+ TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
225
|
225
|
else
|
226
|
|
- TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
|
226
|
+ TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
227
|
227
|
fi
|
228
|
228
|
|
229
|
229
|
if [ ! -f ${rootdir}/tmp/meshtype ]; then
|
|
@@ -421,9 +421,9 @@ function mesh_firewall {
|
421
|
421
|
function mesh_tox_node {
|
422
|
422
|
# obtain commits from the main file
|
423
|
423
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
424
|
|
- TOXCORE_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
424
|
+ TOXCORE_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
425
|
425
|
else
|
426
|
|
- TOXCORE_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
426
|
+ TOXCORE_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
427
|
427
|
fi
|
428
|
428
|
if [ ${#TOXCORE_COMMIT_MAIN} -gt 10 ]; then
|
429
|
429
|
TOXCORE_COMMIT=$TOXCORE_COMMIT_MAIN
|
|
@@ -434,9 +434,9 @@ function mesh_tox_node {
|
434
|
434
|
fi
|
435
|
435
|
|
436
|
436
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
437
|
|
- TOXID_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXID_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
437
|
+ TOXID_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXID_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
438
|
438
|
else
|
439
|
|
- TOXID_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXID_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
439
|
+ TOXID_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXID_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
440
|
440
|
fi
|
441
|
441
|
if [ ${#TOXID_REPO_MAIN} -gt 5 ]; then
|
442
|
442
|
TOXID_REPO=$TOXID_REPO_MAIN
|
|
@@ -447,9 +447,9 @@ function mesh_tox_node {
|
447
|
447
|
fi
|
448
|
448
|
|
449
|
449
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
450
|
|
- TOX_PORT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
|
450
|
+ TOX_PORT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
451
|
451
|
else
|
452
|
|
- TOX_PORT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
|
452
|
+ TOX_PORT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
453
|
453
|
fi
|
454
|
454
|
if [ ${#TOX_PORT_MAIN} -gt 2 ]; then
|
455
|
455
|
TOX_PORT=$TOX_PORT_MAIN
|
|
@@ -460,9 +460,9 @@ function mesh_tox_node {
|
460
|
460
|
fi
|
461
|
461
|
|
462
|
462
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
463
|
|
- TOXCORE_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXCORE_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
463
|
+ TOXCORE_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
464
|
464
|
else
|
465
|
|
- TOXCORE_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXCORE_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
465
|
+ TOXCORE_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
466
|
466
|
fi
|
467
|
467
|
if [ ${#TOXCORE_REPO_MAIN} -gt 10 ]; then
|
468
|
468
|
TOXCORE_REPO=$TOXCORE_REPO_MAIN
|
|
@@ -561,25 +561,25 @@ function mesh_tox_node {
|
561
|
561
|
|
562
|
562
|
function mesh_tox_client {
|
563
|
563
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
564
|
|
- TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
|
564
|
+ TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
565
|
565
|
else
|
566
|
|
- TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
|
566
|
+ TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
567
|
567
|
fi
|
568
|
568
|
|
569
|
569
|
# obtain commits from the main file
|
570
|
570
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
571
|
|
- TOXIC_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
571
|
+ TOXIC_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
572
|
572
|
else
|
573
|
|
- TOXIC_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
573
|
+ TOXIC_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
574
|
574
|
fi
|
575
|
575
|
if [ ${#TOXIC_COMMIT_MAIN} -gt 10 ]; then
|
576
|
576
|
TOXIC_COMMIT=$TOXIC_COMMIT_MAIN
|
577
|
577
|
fi
|
578
|
578
|
|
579
|
579
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
580
|
|
- TOXIC_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
580
|
+ TOXIC_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
581
|
581
|
else
|
582
|
|
- TOXIC_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
582
|
+ TOXIC_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
583
|
583
|
fi
|
584
|
584
|
if [ ${#TOXIC_REPO_MAIN} -gt 5 ]; then
|
585
|
585
|
TOXIC_REPO=$TOXIC_REPO_MAIN
|
|
@@ -632,9 +632,9 @@ function mesh_tox_client_toxic_from_repo {
|
632
|
632
|
function mesh_zeronet {
|
633
|
633
|
# obtain commits from the main file
|
634
|
634
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
635
|
|
- ZERONET_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "ZERONET_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
635
|
+ ZERONET_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-zeronet | grep "ZERONET_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
636
|
636
|
else
|
637
|
|
- ZERONET_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "ZERONET_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
637
|
+ ZERONET_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-zeronet | grep "ZERONET_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
638
|
638
|
fi
|
639
|
639
|
if [ ${#ZERONET_COMMIT_MAIN} -gt 10 ]; then
|
640
|
640
|
ZERONET_COMMIT=$ZERONET_COMMIT_MAIN
|
|
@@ -645,9 +645,9 @@ function mesh_zeronet {
|
645
|
645
|
fi
|
646
|
646
|
|
647
|
647
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
648
|
|
- ZERONET_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "ZERONET_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
648
|
+ ZERONET_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-zeronet | grep "ZERONET_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
649
|
649
|
else
|
650
|
|
- ZERONET_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "ZERONET_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
650
|
+ ZERONET_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-zeronet | grep "ZERONET_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
651
|
651
|
fi
|
652
|
652
|
if [ ${#ZERONET_REPO_MAIN} -gt 5 ]; then
|
653
|
653
|
ZERONET_REPO=$ZERONET_REPO_MAIN
|
|
@@ -658,9 +658,9 @@ function mesh_zeronet {
|
658
|
658
|
fi
|
659
|
659
|
|
660
|
660
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
661
|
|
- ZERONET_PORT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "ZERONET_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
|
661
|
+ ZERONET_PORT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-zeronet | grep "ZERONET_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
662
|
662
|
else
|
663
|
|
- ZERONET_PORT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "ZERONET_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
|
663
|
+ ZERONET_PORT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-zeronet | grep "ZERONET_PORT=" | head -n 1 | awk -F '=' '{print $2}')
|
664
|
664
|
fi
|
665
|
665
|
if [ ${#ZERONET_PORT_MAIN} -gt 1 ]; then
|
666
|
666
|
ZERONET_PORT=$ZERONET_PORT_MAIN
|
|
@@ -744,9 +744,9 @@ function mesh_zeronet {
|
744
|
744
|
|
745
|
745
|
function mesh_batman_client {
|
746
|
746
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
747
|
|
- TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
|
747
|
+ TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
748
|
748
|
else
|
749
|
|
- TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
|
749
|
+ TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
750
|
750
|
fi
|
751
|
751
|
|
752
|
752
|
if [ ! -f ${rootdir}/tmp/meshtype ]; then
|