From 26f34821e1d62a104747eda08b5915ba979d504f Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 17 Feb 2026 09:31:31 +0100 Subject: [PATCH] Update databasus.sh --- ct/databasus.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ct/databasus.sh b/ct/databasus.sh index 1aa8b2a4e..08739acd1 100644 --- a/ct/databasus.sh +++ b/ct/databasus.sh @@ -38,19 +38,17 @@ function update_script() { cp /opt/databasus/.env /tmp/databasus.env.bak msg_ok "Backed up Configuration" - msg_info "Updating Databasus" - fetch_and_deploy_gh_release "databasus" "databasus/databasus" "tarball" "latest" "/opt/databasus" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "databasus" "databasus/databasus" "tarball" "latest" "/opt/databasus" + msg_info "Updating Databasus" cd /opt/databasus/frontend $STD npm ci $STD npm run build - cd /opt/databasus/backend $STD go mod download $STD /root/go/bin/swag init -g cmd/main.go -o swagger $STD env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o databasus ./cmd/main.go mv /opt/databasus/backend/databasus /opt/databasus/databasus - cp -r /opt/databasus/frontend/dist/* /opt/databasus/ui/build/ cp -r /opt/databasus/backend/migrations /opt/databasus/ chown -R postgres:postgres /opt/databasus