From d67bd0f8b915a39d3d92b4eb5f63b229fa34dc53 Mon Sep 17 00:00:00 2001 From: gibbyb Date: Sat, 20 Jul 2024 21:57:40 -0500 Subject: [PATCH] Update updater for server --- update.sh | 7 ------- update/update_container.sh | 3 +++ update/update_host.sh | 4 ++++ 3 files changed, 7 insertions(+), 7 deletions(-) delete mode 100755 update.sh create mode 100755 update/update_container.sh create mode 100755 update/update_host.sh diff --git a/update.sh b/update.sh deleted file mode 100755 index bde9daa..0000000 --- a/update.sh +++ /dev/null @@ -1,7 +0,0 @@ -sudo docker restart techtracker -cd ~/Documents/Web/Tech_Tracker_Web -git pull -#sudo docker exec techtracker wget -qO- https://get.pnpm.io/install.sh\ - #| ENV="$HOME/.bashrc" SHELL="$(which bash)" bash - -sudo docker exec techtracker /home/node/.local/share/pnpm/pnpm build -sudo docker exec techtracker /home/node/.local/share/pnpm/pnpm start & diff --git a/update/update_container.sh b/update/update_container.sh new file mode 100755 index 0000000..4661e3d --- /dev/null +++ b/update/update_container.sh @@ -0,0 +1,3 @@ +wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash - +/home/node/.local/share/pnpm/pnpm build +/home/node/.local/share/pnpm/pnpm start & diff --git a/update/update_host.sh b/update/update_host.sh new file mode 100755 index 0000000..b77bcff --- /dev/null +++ b/update/update_host.sh @@ -0,0 +1,4 @@ +sudo docker restart techtracker +cd ~/Documents/Web/Tech_Tracker_Web +git pull +sudo docker exec techtracker /home/node/app/update/update_container.sh