Tracker port
This commit is contained in:
parent
7324b3863a
commit
3fab4e6cbf
|
@ -50,6 +50,7 @@ ZERONET_REPO='https://github.com/bashrc/ZeroNet'
|
||||||
ZERONET_DIR=~/zeronet
|
ZERONET_DIR=~/zeronet
|
||||||
ZERONET_DEFAULT=1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F
|
ZERONET_DEFAULT=1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F
|
||||||
ZERONET_URL=http://127.0.0.1:43110/$ZERONET_DEFAULT
|
ZERONET_URL=http://127.0.0.1:43110/$ZERONET_DEFAULT
|
||||||
|
TRACKER_PORT=6969
|
||||||
|
|
||||||
function install_zeronet {
|
function install_zeronet {
|
||||||
if [ -d $ZERONET_DIR ]; then
|
if [ -d $ZERONET_DIR ]; then
|
||||||
|
@ -385,13 +386,14 @@ if [[ $peer_index == 1 ]]; then
|
||||||
fi
|
fi
|
||||||
cd $ZERONET_DIR
|
cd $ZERONET_DIR
|
||||||
|
|
||||||
if [ ! -d ~/.bttrack ]; then
|
|
||||||
mkdir ~/.bttrack
|
|
||||||
fi
|
|
||||||
|
|
||||||
existing_bttrack=$(ps aux | grep bttrack | wc -l)
|
existing_bttrack=$(ps aux | grep bttrack | wc -l)
|
||||||
if [ $existing_bttrack -lt "2" ]; then
|
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
|
fi
|
||||||
|
|
||||||
zeronetavahi
|
zeronetavahi
|
||||||
|
|
Loading…
Reference in New Issue