Closed goodtimeclub closed 8 years ago
The update process can be done like this:
#Save your config
cp -v /usr/local/bin/rpisurv/conf/surveillance.yml /tmp/surveillance.yml.save
#Update to latest
git pull
#Run installer
run ./install.sh
#Put back your config
cp -v /tmp/surveillance.yml.save /usr/local/bin/rpisurv/conf/surveillance.yml
reboot
Note: this can only be done if there are no breaking changes in config. Otherwise you need to edit the config by hand. Up till now no breaking have been introduced however
Thanks, Sven! Thought I'd check to see if that was the case - will keep my Pis up to date ;)
ps worked like a charm - great advances so far ;)
I´m trying to update but het this error:
pi@RpiConserjeria ~/rpisurv $ sudo git pull Updating 2f07e95..1528dd0 error: Your local changes to the following files would be overwritten by merge: surveillance/surveillance.py surveillance/worker.py Please, commit your changes or stash them before you can merge. Aborting
What have to do?
Thanks
Also:
pi@RpiConserjeria ~/rpisurv $ sudo git pull https://github.com/SvenVD/rpisurv.git From https://github.com/SvenVD/rpisurv
Ok, solved with
git reset --hard
Wondering how you would recommend safely updating existing instances of this. Any suggestions?