Browse Source

Install toxid

Bob Mottram 8 years ago
parent
commit
f1a18d01ae
1 changed files with 6 additions and 7 deletions
  1. 6
    7
      src/freedombone-app-tox

+ 6
- 7
src/freedombone-app-tox View File

@@ -263,9 +263,6 @@ function configure_firewall_for_tox {
263 263
 }
264 264
 
265 265
 function tox_avahi {
266
-    if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
267
-        return
268
-    fi
269 266
     if grep -Fxq "tox_avahi" $COMPLETION_FILE; then
270 267
         return
271 268
     fi
@@ -289,11 +286,13 @@ function tox_avahi {
289 286
     fi
290 287
     make install
291 288
 
292
-    toxavahi
289
+    if [[ $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
290
+        toxavahi
293 291
 
294
-    # publish regularly
295
-    function_check cron_add_mins
296
-    cron_add_mins 1 'toxavahi > /dev/null'
292
+        # publish regularly
293
+        function_check cron_add_mins
294
+        cron_add_mins 1 'toxavahi 2> /dev/null'
295
+    fi
297 296
 
298 297
     systemctl restart avahi-daemon
299 298