Skip to content
Snippets Groups Projects
Commit 7f3be343 authored by 42loop's avatar 42loop
Browse files

added reboot to autoupdate

parent 73173be0
Branches
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@
# do a git pull and reboot or restart script if anything changed
cd /home/pi/traincam
res=$(git pull)
#echo $res
......@@ -11,5 +13,5 @@ if [[ $res = *"up-to-date"* ]]; then
echo "It's up to date !"
else
echo "We'll have to restart !"
sudo reboot
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment