Use zeronet trackers file

This commit is contained in:
Bob Mottram 2015-09-12 18:48:34 +01:00
parent ec958bbd66
commit d048fa72db
3 changed files with 4 additions and 7 deletions

View File

@ -1859,7 +1859,7 @@ function install_zeronet {
echo 'User=zeronet' >> /etc/systemd/system/zeronet.service
echo 'Group=zeronet' >> /etc/systemd/system/zeronet.service
echo 'WorkingDirectory=/opt/zeronet' >> /etc/systemd/system/zeronet.service
echo "ExecStart=/usr/bin/python zeronet.py --ip_external ${DEFAULT_DOMAIN_NAME}.local --config_file /opt/zeronet/zeronet.conf" >> /etc/systemd/system/zeronet.service
echo "ExecStart=/usr/bin/python zeronet.py --ip_external ${DEFAULT_DOMAIN_NAME}.local --trackers_file /opt/zeronet/bootstrap" >> /etc/systemd/system/zeronet.service
echo '' >> /etc/systemd/system/zeronet.service
echo 'TimeoutSec=300' >> /etc/systemd/system/zeronet.service
echo '' >> /etc/systemd/system/zeronet.service

View File

@ -323,7 +323,7 @@ zeronetavahi
existing_zeronet=$(ps aux | grep zeronet | wc -l)
if [ $existing_zeronet -lt "2" ]; then
python zeronet.py --ip_external $(hostname).local --config_file $ZERONET_DIR/zeronet.conf &
python zeronet.py --ip_external $(hostname).local --trackers_file $ZERONET_DIR/bootstrap &
fi
if which firefox > /dev/null; then

View File

@ -49,7 +49,7 @@ BLOGS_FILE=$ZERONET_INSTALL/freedombone-blogs
FORUM_FILE=$ZERONET_INSTALL/freedombone-fora
TOX_USERS_FILE=$ZERONET_INSTALL/freedombone-tox-users
ZERONET_INDEX=/home/$MY_USERNAME/mesh.html
ZERONET_CONFIG=$ZERONET_INSTALL/zeronet.conf
ZERONET_CONFIG=$ZERONET_INSTALL/bootstrap
function create_index {
if [ -f $ZERONET_INDEX ]; then
@ -123,9 +123,6 @@ if [ -f $ZERONET_CONFIG.new ]; then
rm -f $ZERONET_CONFIG.new
fi
echo '[global]' > $ZERONET_CONFIG.new
echo 'trackers =' >> $ZERONET_CONFIG.new
state=0
address=""
peer=""