This commit is contained in:
Bob Mottram 2015-08-24 19:42:51 +01:00
parent c8537bb337
commit 789e0ebded
1 changed files with 9 additions and 9 deletions

View File

@ -8154,7 +8154,7 @@ function tox_avahi {
echo 'tox_avahi: avahi is not installed'
exit 87359
fi
# install a command to obtain the Tox ID
cd $INSTALL_DIR
git clone https://github.com/bashrc/toxid
@ -8166,7 +8166,7 @@ function tox_avahi {
if [ ! "$?" = "0" ]; then
exit 58432
fi
make install
make install
# script to publish the tox user
if [ ! -f /usr/bin/publish-to-avahi ]; then
@ -8186,11 +8186,11 @@ function tox_avahi {
echo "echo '<!DOCTYPE service-group SYSTEM \"avahi-service.dtd\">' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
echo "echo '<service-group>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
echo "echo ' <name replace-wildcards=\"yes\">%h $TOX_ID</name>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
echo "echo ' <service>' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
echo "echo ' <type>_tox._tcp</type>' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
echo "echo \" <port>$TOX_PORT</port>\" >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
echo "echo ' </service>' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
echo "echo '</service-group>' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi
echo "echo ' <service>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
echo "echo ' <type>_tox._tcp</type>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
echo "echo \" <port>$TOX_PORT</port>\" >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
echo "echo ' </service>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
echo "echo '</service-group>' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi
echo '' >> /usr/bin/publish-to-avahi
echo 'exit 0' >> /usr/bin/publish-to-avahi
@ -8200,8 +8200,8 @@ function tox_avahi {
if ! grep -Fxq "publish-to-avahi" /etc/crontab; then
echo '*/1 * * * * root /usr/bin/publish-to-avahi > /dev/null' >> /etc/crontab
fi
echo 'tox_avahi' >> $COMPLETION_FILE
echo 'tox_avahi' >> $COMPLETION_FILE
}
function install_tox_node {