浏览代码

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
 configure_monkeysphere
191
 configure_monkeysphere
192
 if [[ $MESH_CLIENT_INSTALL == $'yes' || $MESH_CLIENT_INSTALL == $'y' || $MESH_CLIENT_INSTALL == $'on' ]]; then
192
 if [[ $MESH_CLIENT_INSTALL == $'yes' || $MESH_CLIENT_INSTALL == $'y' || $MESH_CLIENT_INSTALL == $'on' ]]; then
193
 	echo $'Installing mesh packages'
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
 	${PROJECT_NAME}-mesh-install -f batman_client
197
 	${PROJECT_NAME}-mesh-install -f batman_client
195
 fi
198
 fi
196
 echo $'Configuration complete'
199
 echo $'Configuration complete'

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

620
 	fi
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
 function mesh_zeronet {
633
 function mesh_zeronet {
624
 	# obtain commits from the main file
634
 	# obtain commits from the main file
625
 	if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
635
 	if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
1059
 if [[ $FN == 'zeronet' ]]; then
1069
 if [[ $FN == 'zeronet' ]]; then
1060
 	mesh_zeronet
1070
 	mesh_zeronet
1061
 fi
1071
 fi
1072
+if [[ $FN == 'qtox' ]]; then
1073
+	mesh_tox_client_qtox
1074
+fi
1062
 
1075
 
1063
 exit 0
1076
 exit 0