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

Commit 55d3276

Browse files
committed
add updater
1 parent a797cad commit 55d3276

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ if $bridge; then
8080

8181
sudo sed -i '$inode /server/server.js &' /etc/rc.local
8282
sudo sed -i '$i/server/node_modules/http-server/bin/http-server /server &' /etc/rc.local
83+
84+
(crontab -l 2>/dev/null; echo "* * * * * cd /server && curl -LO https://github.com/decantr/rgu-honours-report/releases/download/1/reporter-armel ") | crontab -
8385
sleep 1
8486
sync
8587
reboot
@@ -125,4 +127,5 @@ else
125127
fi
126128
# add the reporter file to the crontab
127129
(crontab -l 2>/dev/null; echo "* * * * * /reporter") | crontab -
130+
(crontab -l 2>/dev/null; echo "* * * * * cd / && curl -LO sensor-bridge.local/reporter-armel ") | crontab -
128131
fi

0 commit comments

Comments
 (0)