Change name of the mesh sync script

This commit is contained in:
Bob Mottram 2016-09-11 13:33:25 +01:00
parent c318a3e910
commit 116d633096
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
4 changed files with 7 additions and 10 deletions

View File

@ -53,7 +53,7 @@ uninstall:
rm -rf ${PREFIX}/share/${APP}
rm -rf /usr/share/${APP}
rm -f ${PREFIX}/bin/${APP}*
rm -f ${PREFIX}/bin/zeronetavahi
rm -f ${PREFIX}/bin/meshavahi
rm -f ${PREFIX}/bin/backup
rm -f ${PREFIX}/bin/backup2friends
rm -f ${PREFIX}/bin/restore

View File

@ -565,7 +565,7 @@ EOF
MESH_SYNC_COMMAND=$rootdir/usr/bin/mesh-sync
echo '#!/bin/bash' > $MESH_SYNC_COMMAND
echo '/usr/local/bin/toxavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
echo '/usr/local/bin/zeronetavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
echo '/usr/local/bin/meshavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
chmod +x $MESH_SYNC_COMMAND
if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then

View File

@ -558,7 +558,7 @@ function mesh_zeronet {
MESH_SYNC_COMMAND=$rootdir/usr/bin/mesh-sync
echo '#!/bin/bash' > $MESH_SYNC_COMMAND
echo '/usr/local/bin/toxavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
echo '/usr/local/bin/zeronetavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
echo '/usr/local/bin/meshavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
chmod +x $MESH_SYNC_COMMAND
if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then

View File

@ -8,10 +8,7 @@
#
# Freedom in the Cloud
#
# A script for using avahi to discover peers and update zeronet trackers
# Blogs and fora are discovered on the network and then published
# to an index file which can be opened in a browser
# A script for using avahi to discover peers and update tox/ipfs
# License
# =======
@ -33,7 +30,7 @@
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME-zeronetavahi
export TEXTDOMAIN=$PROJECT_NAME-meshavahi
export TEXTDOMAINDIR="/usr/share/locale"
MESH_USERNAME='fbone'
@ -46,8 +43,8 @@ IPFS_USERS_FILE=/home/$MY_USERNAME/.ipfs-users
IPFS_PUBLIC=/home/$MY_USERNAME/.ipfs-public
# contains the output of the avahi command
TEMPFILE_BASE=$(mktemp /tmp/zeronetavahibase.XXXXXX)
TEMPFILE=$(mktemp /tmp/zeronetavahi.XXXXXX)
TEMPFILE_BASE=$(mktemp /tmp/meshavahibase.XXXXXX)
TEMPFILE=$(mktemp /tmp/meshavahi.XXXXXX)
# List of tox users previously seen
PREV_TOX_USERS_FILE=/root/.prev_tox_users