Run ipfs daemon on mesh client

This commit is contained in:
Bob Mottram 2015-09-30 12:22:00 +01:00
parent fcd28f5050
commit 35db1c66ff
1 changed files with 5 additions and 0 deletions

View File

@ -358,6 +358,11 @@ if [ $existing_bttrack -lt "2" ]; then
bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0 &
fi
existing_ipfs=$(ps aux | grep ipfs | wc -l)
if [ $existing_ipfs -lt "2" ]; then
ipfs daemon --mount
fi
ZERONET_INDEX=/home/$MY_USERNAME/mesh.html
cp /etc/crontab /tmp/crontab