Better handling of toxcore logging

This commit is contained in:
Bob Mottram 2016-11-20 23:28:15 +00:00
parent 130393d2a5
commit c26f366e31
1 changed files with 15 additions and 5 deletions

View File

@ -701,17 +701,27 @@ function install_tox {
mesh_tox_avahi
mesh_tox_client
else
${PROJECT_NAME}-logging on
install_tox_node
avoid_tor_restart=
if [ -f $IMAGE_PASSWORD_FILE ]; then
if [[ $ONION_ONLY != 'no' ]]; then
${PROJECT_NAME}-logging off --onion
else
${PROJECT_NAME}-logging off
avoid_tor_restart=1
fi
fi
if [ $avoid_tor_restart ]; then
${PROJECT_NAME}-logging on --onion
else
${PROJECT_NAME}-logging on
fi
install_tox_node
if [ $avoid_tor_restart ]; then
${PROJECT_NAME}-logging off --onion
else
${PROJECT_NAME}-logging off
fi
tox_avahi
install_tox_client
fi