mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-05 16:35:59 +00:00
Databasus: update mongo-tools fallback to 100.16.1 and use now pnpm instead of npm ci (#14240)
Co-authored-by: MickLesk <mickey.leskowitz@levelbuild.com>
This commit is contained in:
committed by
GitHub
parent
03a44a8c9c
commit
d118f101d8
+4
-3
@@ -46,7 +46,7 @@ function update_script() {
|
|||||||
# Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13)
|
# Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13)
|
||||||
if ! command -v mongodump &>/dev/null; then
|
if ! command -v mongodump &>/dev/null; then
|
||||||
[[ "$(get_os_info id)" == "ubuntu" ]] && MONGO_DIST="ubuntu2204" || MONGO_DIST="debian12"
|
[[ "$(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
|
fi
|
||||||
[[ -f /usr/bin/mongodump ]] && ln -sf /usr/bin/mongodump /usr/local/mongodb-database-tools/bin/mongodump
|
[[ -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
|
[[ -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"
|
msg_info "Updating Databasus"
|
||||||
cd /opt/databasus/frontend
|
cd /opt/databasus/frontend
|
||||||
$STD npm ci
|
$STD corepack enable
|
||||||
$STD npm run build
|
$STD pnpm install --frozen-lockfile
|
||||||
|
$STD pnpm run build
|
||||||
cd /opt/databasus/backend
|
cd /opt/databasus/backend
|
||||||
$STD go mod download
|
$STD go mod download
|
||||||
$STD /root/go/bin/swag init -g cmd/main.go -o swagger
|
$STD /root/go/bin/swag init -g cmd/main.go -o swagger
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ for v in 12 13 14 15 16 18; do
|
|||||||
done
|
done
|
||||||
# Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13)
|
# Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13)
|
||||||
[[ "$(get_os_info id)" == "ubuntu" ]] && MONGO_DIST="ubuntu2204" || MONGO_DIST="debian12"
|
[[ "$(get_os_info id)" == "ubuntu" ]] && MONGO_DIST="ubuntu2204" || MONGO_DIST="debian12"
|
||||||
MONGO_VERSION=$(get_latest_gh_tag "mongodb/mongo-tools" "100." || echo "100.14.1")
|
MONGO_VERSION=$(get_latest_gh_tag "mongodb/mongo-tools" "100." || echo "100.16.1")
|
||||||
fetch_and_deploy_from_url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-x86_64-${MONGO_VERSION}.deb" ""
|
fetch_and_deploy_from_url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-x86_64-${MONGO_VERSION}.deb" ""
|
||||||
mkdir -p /usr/local/mongodb-database-tools/bin
|
mkdir -p /usr/local/mongodb-database-tools/bin
|
||||||
[[ -f /usr/bin/mongodump ]] && ln -sf /usr/bin/mongodump /usr/local/mongodb-database-tools/bin/mongodump
|
[[ -f /usr/bin/mongodump ]] && ln -sf /usr/bin/mongodump /usr/local/mongodb-database-tools/bin/mongodump
|
||||||
@@ -53,8 +53,9 @@ fetch_and_deploy_gh_release "databasus" "databasus/databasus" "tarball" "latest"
|
|||||||
|
|
||||||
msg_info "Building Databasus (Patience)"
|
msg_info "Building Databasus (Patience)"
|
||||||
cd /opt/databasus/frontend
|
cd /opt/databasus/frontend
|
||||||
$STD npm ci
|
$STD corepack enable
|
||||||
$STD npm run build
|
$STD pnpm install --frozen-lockfile
|
||||||
|
$STD pnpm run build
|
||||||
cd /opt/databasus/backend
|
cd /opt/databasus/backend
|
||||||
$STD go mod tidy
|
$STD go mod tidy
|
||||||
$STD go mod download
|
$STD go mod download
|
||||||
|
|||||||
Reference in New Issue
Block a user