From f1a18d01ae7e20e0a743dec681341d41ea774bf7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 29 Sep 2016 12:29:20 +0100 Subject: [PATCH] Install toxid --- src/freedombone-app-tox | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index 52b5a5cc..bf7c54f4 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -263,9 +263,6 @@ function configure_firewall_for_tox { } function tox_avahi { - if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then - return - fi if grep -Fxq "tox_avahi" $COMPLETION_FILE; then return fi @@ -289,11 +286,13 @@ function tox_avahi { fi make install - toxavahi + if [[ $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then + toxavahi - # publish regularly - function_check cron_add_mins - cron_add_mins 1 'toxavahi > /dev/null' + # publish regularly + function_check cron_add_mins + cron_add_mins 1 'toxavahi 2> /dev/null' + fi systemctl restart avahi-daemon