瀏覽代碼

Get tox port from app script

Bob Mottram 8 年之前
父節點
當前提交
b77141a7e8
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/freedombone-image-customise

+ 2
- 2
src/freedombone-image-customise 查看文件

@@ -640,9 +640,9 @@ function mesh_tox_node {
640 640
 	fi
641 641
 
642 642
 	if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
643
-		TOX_PORT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
643
+		TOX_PORT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
644 644
 	else
645
-		TOX_PORT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
645
+		TOX_PORT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
646 646
 	fi
647 647
 	if [ ${#TOX_PORT_MAIN} -gt 2 ]; then
648 648
 		TOX_PORT=$TOX_PORT_MAIN