Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Commit

Permalink
add updater
Browse files Browse the repository at this point in the history
  • Loading branch information
decantr committed Apr 30, 2019
1 parent a797cad commit 55d3276
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ if $bridge; then

sudo sed -i '$inode /server/server.js &' /etc/rc.local
sudo sed -i '$i/server/node_modules/http-server/bin/http-server /server &' /etc/rc.local

(crontab -l 2>/dev/null; echo "* * * * * cd /server && curl -LO https://github.com/decantr/rgu-honours-report/releases/download/1/reporter-armel ") | crontab -
sleep 1
sync
reboot
Expand Down Expand Up @@ -125,4 +127,5 @@ else
fi
# add the reporter file to the crontab
(crontab -l 2>/dev/null; echo "* * * * * /reporter") | crontab -
(crontab -l 2>/dev/null; echo "* * * * * cd / && curl -LO sensor-bridge.local/reporter-armel ") | crontab -
fi

0 comments on commit 55d3276

Please sign in to comment.