diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index adef7866..0956c9e3 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -267,11 +267,7 @@ function install_tox_node { return fi - ${PROJECT_NAME}-mesh-install -f tox_node - if [ ! "$?" = "0" ]; then - echo $'Failed to install tox node' - exit 26778 - fi + mesh_tox_node TOX_ONION_HOSTNAME=$(add_onion_service tox ${TOX_PORT} ${TOX_PORT}) @@ -381,10 +377,14 @@ function mesh_tox_node { exit 16865 fi - chroot "$rootdir" apt-get -y install build-essential libtool autotools-dev - chroot "$rootdir" apt-get -y install automake checkinstall check git yasm - chroot "$rootdir" apt-get -y install libsodium13 libsodium-dev libcap2-bin - chroot "$rootdir" apt-get -y install libconfig9 libconfig-dev autoconf + mesh_tox_node_prefix='' + if [ $rootdir ]; then + mesh_tox_node_prefix="chroot \"$rootdir\"" + fi + $mesh_tox_node_prefix apt-get -y install build-essential libtool autotools-dev + $mesh_tox_node_prefix apt-get -y install automake checkinstall check git yasm + $mesh_tox_node_prefix apt-get -y install libsodium13 libsodium-dev libcap2-bin + $mesh_tox_node_prefix apt-get -y install libconfig9 libconfig-dev autoconf TEMP_SCRIPT_NAME=fbtmp37272.sh TEMP_SCRIPT=/tmp/$TEMP_SCRIPT_NAME @@ -397,7 +397,7 @@ function mesh_tox_node { cd ${rootdir}$INSTALL_DIR/toxcore git checkout $TOXCORE_COMMIT -b $TOXCORE_COMMIT - chroot "$rootdir" /bin/bash -x <