Add cron job for zeronet bootstrap
This commit is contained in:
parent
081676f3b8
commit
2479abfe9f
|
@ -281,7 +281,11 @@ fi
|
|||
|
||||
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
|
||||
|
||||
existing_zeronet=$(ps aux | grep zeronet | wc -l)
|
||||
|
|
Loading…
Reference in New Issue