mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-06 10:55:56 +01:00
fix(databasus): use get_latest_gh_tag for MongoDB tools version
Replace hardcoded 100.14.1 with dynamic version lookup via get_latest_gh_tag (from feat/get-latest-gh-tag branch). Falls back to 100.14.1 if the API call fails. Depends-On: feat/get-latest-gh-tag
This commit is contained in:
@@ -33,8 +33,9 @@ done
|
||||
# Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13)
|
||||
MONGO_ARCH=$(get_system_arch uname)
|
||||
[[ "$(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")
|
||||
tmp_file=$(mktemp)
|
||||
curl -fsSL -o "$tmp_file" "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-${MONGO_ARCH}-100.14.1.deb"
|
||||
curl -fsSL -o "$tmp_file" "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-${MONGO_ARCH}-${MONGO_VERSION}.deb"
|
||||
$STD dpkg -i "$tmp_file" || $STD apt install -f -y --no-install-recommends
|
||||
rm -f "$tmp_file"
|
||||
mkdir -p /usr/local/mongodb-database-tools/bin
|
||||
|
||||
Reference in New Issue
Block a user