redeploy as root

This commit is contained in:
SimonFJ20 2025-03-07 12:23:13 +01:00
parent d016ed4a69
commit 6bf3ee3e68
2 changed files with 10 additions and 6 deletions

9
deploy/pull_and_build.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
git pull --rebase
cd backend
make clean
make RELEASE=1
cd ..

View File

@ -9,12 +9,7 @@ set +e
fuser -k 8080/tcp fuser -k 8080/tcp
set -e set -e
git pull --rebase su host -c 'sh deploy/pull_and_build.sh'
cd backend
make clean
make RELEASE=1
cd ..
sh deploy/install_service.sh sh deploy/install_service.sh