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

Tracker port

parent 7324b386
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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