From 7d773c7d1c7cf3079cecc510b0c652e9ad9c2cf8 Mon Sep 17 00:00:00 2001 From: Tobias Hopp Date: Fri, 3 Feb 2023 11:48:25 +0100 Subject: [PATCH] update updater Took 9 minutes --- update.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 3b76962..05bdba8 100755 --- a/update.sh +++ b/update.sh @@ -3,5 +3,9 @@ cd /home/itender/itender || exit -1 git pull "https://tobiash:!IwedwrimmVeudiweN!@git.gaminggeneration.de/tobiash/itender.git" --quiet yarn yarn run compile -sudo systemctl restart itender +sudo systemctl stop itender +cd ./arduino/itender/ +arduino-cli compile --fqbn arduino:avr:mega itender.ino || true +arduino-cli upload --port /dev/ACM0 --fqbn arduino:avr:mega itender.ino || true +sudo systemctl start itender exit 0 \ No newline at end of file