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_avahi
mesh_tox_client mesh_tox_client
else else
${PROJECT_NAME}-logging on avoid_tor_restart=
install_tox_node
if [ -f $IMAGE_PASSWORD_FILE ]; then if [ -f $IMAGE_PASSWORD_FILE ]; then
if [[ $ONION_ONLY != 'no' ]]; then if [[ $ONION_ONLY != 'no' ]]; then
${PROJECT_NAME}-logging off --onion avoid_tor_restart=1
else
${PROJECT_NAME}-logging off
fi 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 else
${PROJECT_NAME}-logging off ${PROJECT_NAME}-logging off
fi fi
tox_avahi tox_avahi
install_tox_client install_tox_client
fi fi