Bob Mottram il y a 10 ans
Parent
révision
789e0ebded
1 fichiers modifiés avec 9 ajouts et 9 suppressions
  1. 9
    9
      src/freedombone

+ 9
- 9
src/freedombone Voir le fichier

@@ -8154,7 +8154,7 @@ function tox_avahi {
8154 8154
       echo 'tox_avahi: avahi is not installed'
8155 8155
       exit 87359
8156 8156
   fi
8157
-  
8157
+
8158 8158
   # install a command to obtain the Tox ID
8159 8159
   cd $INSTALL_DIR
8160 8160
   git clone https://github.com/bashrc/toxid
@@ -8166,7 +8166,7 @@ function tox_avahi {
8166 8166
   if [ ! "$?" = "0" ]; then
8167 8167
       exit 58432
8168 8168
   fi
8169
-  make install  
8169
+  make install
8170 8170
 
8171 8171
   # script to publish the tox user
8172 8172
   if [ ! -f /usr/bin/publish-to-avahi ]; then
@@ -8186,11 +8186,11 @@ function tox_avahi {
8186 8186
   echo "echo '<!DOCTYPE service-group SYSTEM \"avahi-service.dtd\">' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
8187 8187
   echo "echo '<service-group>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
8188 8188
   echo "echo '  <name replace-wildcards=\"yes\">%h $TOX_ID</name>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
8189
-  echo "echo '  <service>' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
8190
-  echo "echo '    <type>_tox._tcp</type>' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
8191
-  echo "echo \"    <port>$TOX_PORT</port>\" >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
8192
-  echo "echo '  </service>' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
8193
-  echo "echo '</service-group>' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
8189
+  echo "echo '  <service>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
8190
+  echo "echo '    <type>_tox._tcp</type>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
8191
+  echo "echo \"    <port>$TOX_PORT</port>\" >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
8192
+  echo "echo '  </service>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
8193
+  echo "echo '</service-group>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
8194 8194
 
8195 8195
   echo '' >> /usr/bin/publish-to-avahi
8196 8196
   echo 'exit 0' >> /usr/bin/publish-to-avahi
@@ -8200,8 +8200,8 @@ function tox_avahi {
8200 8200
   if ! grep -Fxq "publish-to-avahi" /etc/crontab; then
8201 8201
       echo '*/1            * *   *   *   root /usr/bin/publish-to-avahi > /dev/null' >> /etc/crontab
8202 8202
   fi
8203
-  
8204
-  echo 'tox_avahi' >> $COMPLETION_FILE  
8203
+
8204
+  echo 'tox_avahi' >> $COMPLETION_FILE
8205 8205
 }
8206 8206
 
8207 8207
 function install_tox_node {