瀏覽代碼

Install tox clients on client mesh install

Bob Mottram 9 年之前
父節點
當前提交
082d023799
共有 2 個檔案被更改,包括 16 行新增0 行删除
  1. 3
    0
      src/freedombone-client
  2. 13
    0
      src/freedombone-mesh-install

+ 3
- 0
src/freedombone-client 查看文件

@@ -191,6 +191,9 @@ configure_ssh_client
191 191
 configure_monkeysphere
192 192
 if [[ $MESH_CLIENT_INSTALL == $'yes' || $MESH_CLIENT_INSTALL == $'y' || $MESH_CLIENT_INSTALL == $'on' ]]; then
193 193
 	echo $'Installing mesh packages'
194
+	${PROJECT_NAME}-mesh-install -f mesh_tox_node
195
+	${PROJECT_NAME}-mesh-install -f mesh_tox_client
196
+	${PROJECT_NAME}-mesh-install -f qtox
194 197
 	${PROJECT_NAME}-mesh-install -f batman_client
195 198
 fi
196 199
 echo $'Configuration complete'

+ 13
- 0
src/freedombone-mesh-install 查看文件

@@ -620,6 +620,16 @@ function mesh_tox_client {
620 620
 	fi
621 621
 }
622 622
 
623
+function mesh_tox_client_qtox {
624
+	sudo sh -c 'echo "deb https://pkg.tox.chat/debian/ nightly release" > /etc/apt/sources.list.d/tox.list'
625
+	wget -qO - https://pkg.tox.chat/debian/pkg.gpg.key | sudo apt-key add -

626
+	sudo apt-get -y install apt-transport-https
627
+	sudo apt-get -y update -qq
628
+	echo "qTox Repository Installed."
629
+	sudo apt-get -y install qtox
630
+	echo "qTox Installed."
631
+}
632
+
623 633
 function mesh_zeronet {
624 634
 	# obtain commits from the main file
625 635
 	if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
@@ -1059,5 +1069,8 @@ fi
1059 1069
 if [[ $FN == 'zeronet' ]]; then
1060 1070
 	mesh_zeronet
1061 1071
 fi
1072
+if [[ $FN == 'qtox' ]]; then
1073
+	mesh_tox_client_qtox
1074
+fi
1062 1075
 
1063 1076
 exit 0