From 052af4a4140d87d08d214bf5fc22d79cda0fcc1f Mon Sep 17 00:00:00 2001 From: MickLesk Date: Mon, 4 May 2026 16:41:42 +0200 Subject: [PATCH] fix(databasus): fix update_script - mongo-tools 100.16.1 and pnpm instead of npm ci --- ct/databasus.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ct/databasus.sh b/ct/databasus.sh index 1035c1cf3..4852a9285 100644 --- a/ct/databasus.sh +++ b/ct/databasus.sh @@ -46,7 +46,7 @@ function update_script() { # Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13) if ! command -v mongodump &>/dev/null; then [[ "$(get_os_info id)" == "ubuntu" ]] && MONGO_DIST="ubuntu2204" || MONGO_DIST="debian12" - fetch_and_deploy_from_url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-x86_64-100.14.1.deb" + fetch_and_deploy_from_url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-x86_64-100.16.1.deb" fi [[ -f /usr/bin/mongodump ]] && ln -sf /usr/bin/mongodump /usr/local/mongodb-database-tools/bin/mongodump [[ -f /usr/bin/mongorestore ]] && ln -sf /usr/bin/mongorestore /usr/local/mongodb-database-tools/bin/mongorestore @@ -67,8 +67,9 @@ function update_script() { msg_info "Updating Databasus" cd /opt/databasus/frontend - $STD npm ci - $STD npm run build + $STD corepack enable + $STD pnpm install --frozen-lockfile + $STD pnpm run build cd /opt/databasus/backend $STD go mod download $STD /root/go/bin/swag init -g cmd/main.go -o swagger