Tracker port

This commit is contained in:
Bob Mottram 2015-08-29 23:45:36 +01:00
parent 7324b3863a
commit 3fab4e6cbf
1 changed files with 6 additions and 4 deletions

View File

@ -50,6 +50,7 @@ ZERONET_REPO='https://github.com/bashrc/ZeroNet'
ZERONET_DIR=~/zeronet
ZERONET_DEFAULT=1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F
ZERONET_URL=http://127.0.0.1:43110/$ZERONET_DEFAULT
TRACKER_PORT=6969
function install_zeronet {
if [ -d $ZERONET_DIR ]; then
@ -385,13 +386,14 @@ if [[ $peer_index == 1 ]]; then
fi
cd $ZERONET_DIR
if [ ! -d ~/.bttrack ]; then
mkdir ~/.bttrack
fi
existing_bttrack=$(ps aux | grep bttrack | wc -l)
if [ $existing_bttrack -lt "2" ]; then
bttrack --port $TRACKER_PORT --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full &
if [ ! -d ~/.bttrack ]; then
mkdir ~/.bttrack
fi
echo '***********************************'
bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full &
fi
zeronetavahi