|
@@ -627,9 +627,9 @@ function mesh_firewall {
|
627
|
627
|
function mesh_tox_node {
|
628
|
628
|
# obtain commits from the main file
|
629
|
629
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
630
|
|
- TOXCORE_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
630
|
+ TOXCORE_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
631
|
631
|
else
|
632
|
|
- TOXCORE_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
632
|
+ TOXCORE_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
633
|
633
|
fi
|
634
|
634
|
if [ ${#TOXCORE_COMMIT_MAIN} -gt 10 ]; then
|
635
|
635
|
TOXCORE_COMMIT=$TOXCORE_COMMIT_MAIN
|