Skip to content
Snippets Groups Projects
Commit 4f4354ba authored by Bob Mottram's avatar Bob Mottram
Browse files

Check that toxid gets installed

parent 3348a0c3
No related branches found
No related tags found
No related merge requests found
......@@ -755,8 +755,11 @@ function mesh_tox_avahi {
echo ' exit 2' >> $TEMP_SCRIPT
echo 'fi' >> $TEMP_SCRIPT
echo 'make install' >> $TEMP_SCRIPT
echo 'if [ ! -f /usr/local/bin/toxavahi ]; then' >> $TEMP_SCRIPT
echo ' exit 3' >> $TEMP_SCRIPT
echo 'fi' >> $TEMP_SCRIPT
echo 'toxavahi' >> $TEMP_SCRIPT
echo 'echo "* * * * * root toxavahi > /dev/null" >> /etc/crontab' >> $TEMP_SCRIPT
echo 'echo "* * * * * root /usr/local/bin/toxavahi > /dev/null" >> /etc/crontab' >> $TEMP_SCRIPT
echo 'systemctl restart avahi-daemon' >> $TEMP_SCRIPT
echo 'exit 0' >> $TEMP_SCRIPT
chmod +x $TEMP_SCRIPT
......@@ -764,7 +767,7 @@ function mesh_tox_avahi {
chroot "$rootdir" /root/$TEMP_SCRIPT_NAME
if [ ! "$?" = "0" ]; then
echo $'Unable to install toxid'
echo $"Unable to install toxid, returned $?"
rm $TEMP_SCRIPT
exit 62835
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment