Add cron job for zeronet bootstrap

This commit is contained in:
Bob Mottram 2015-09-03 16:45:27 +01:00
parent 081676f3b8
commit 2479abfe9f
1 changed files with 5 additions and 1 deletions

View File

@ -281,7 +281,11 @@ fi
ZERONET_INDEX=/home/$MY_USERNAME/mesh.html ZERONET_INDEX=/home/$MY_USERNAME/mesh.html
sleep 5 cp /etc/crontab /tmp/crontab
if ! grep -q "zeronetavahi" /tmp/crontab; then
echo "* * * * * $MY_USERNAME zeronetavahi > /dev/null" >> /tmp/crontab
fi
sudo cp /tmp/crontab /etc/crontab
zeronetavahi zeronetavahi
existing_zeronet=$(ps aux | grep zeronet | wc -l) existing_zeronet=$(ps aux | grep zeronet | wc -l)