From dd66f1adf0c8167869aadcdb275a7d1999cedde6 Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Fri, 27 Nov 2020 11:58:01 +0100 Subject: [PATCH] update: improvement to the script --- scripts/bash/update.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/bash/update.sh b/scripts/bash/update.sh index 89657bf..2b3b49b 100755 --- a/scripts/bash/update.sh +++ b/scripts/bash/update.sh @@ -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!" \ No newline at end of file