|
@@ -701,17 +701,27 @@ function install_tox {
|
701
|
701
|
mesh_tox_avahi
|
702
|
702
|
mesh_tox_client
|
703
|
703
|
else
|
704
|
|
- ${PROJECT_NAME}-logging on
|
705
|
|
- install_tox_node
|
|
704
|
+ avoid_tor_restart=
|
706
|
705
|
if [ -f $IMAGE_PASSWORD_FILE ]; then
|
707
|
706
|
if [[ $ONION_ONLY != 'no' ]]; then
|
708
|
|
- ${PROJECT_NAME}-logging off --onion
|
709
|
|
- else
|
710
|
|
- ${PROJECT_NAME}-logging off
|
|
707
|
+ avoid_tor_restart=1
|
711
|
708
|
fi
|
|
709
|
+ fi
|
|
710
|
+
|
|
711
|
+ if [ $avoid_tor_restart ]; then
|
|
712
|
+ ${PROJECT_NAME}-logging on --onion
|
|
713
|
+ else
|
|
714
|
+ ${PROJECT_NAME}-logging on
|
|
715
|
+ fi
|
|
716
|
+
|
|
717
|
+ install_tox_node
|
|
718
|
+
|
|
719
|
+ if [ $avoid_tor_restart ]; then
|
|
720
|
+ ${PROJECT_NAME}-logging off --onion
|
712
|
721
|
else
|
713
|
722
|
${PROJECT_NAME}-logging off
|
714
|
723
|
fi
|
|
724
|
+
|
715
|
725
|
tox_avahi
|
716
|
726
|
install_tox_client
|
717
|
727
|
fi
|