update: improvement to the script
This commit is contained in:
parent
f1b49e672b
commit
dd66f1adf0
|
@ -4,7 +4,11 @@ log="logger -t update.sh -s "
|
|||
${log} "Updating the main repository"
|
||||
cd /home/pi/PlanktonScope
|
||||
|
||||
echo "Update output:\n"
|
||||
sudo killall -15 raspimjpeg
|
||||
sudo killall -15 python3
|
||||
git stash
|
||||
git pull
|
||||
git checkout stash@{0} -- config.json hardware.json
|
||||
git checkout stash@{0} -- config.json hardware.json
|
||||
sudo systemctl restart nodered.service
|
||||
${log} "Done!"
|
Loading…
Reference in a new issue