From 693b363ba2e2825fb2da2c1d6d788a8a5fe5cc3a Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Wed, 9 Nov 2022 22:59:29 +0700 Subject: [PATCH] install/update script --- rpi_install.sh | 6 ++++++ rpi_update.sh | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 rpi_install.sh create mode 100644 rpi_update.sh diff --git a/rpi_install.sh b/rpi_install.sh new file mode 100644 index 0000000..55e45f6 --- /dev/null +++ b/rpi_install.sh @@ -0,0 +1,6 @@ +sudo apt update +sudo apt install python3 python3-pip +pip3 install -r ./requirements.txt +ln -s ./kuukar.service /etc/systemd/system/kuukar.service +sudo systemctl kuukar enable +sudo systemctl kuukar start \ No newline at end of file diff --git a/rpi_update.sh b/rpi_update.sh new file mode 100644 index 0000000..1f9ff7d --- /dev/null +++ b/rpi_update.sh @@ -0,0 +1,4 @@ +git stash +git pull +cp -fv ../kuukar_config.py ./kuukar/kuukar_config.py +service kuukar restart \ No newline at end of file