From 696299ed37ace9bf0e6ef2806cb3dcdb00fa63c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 24 Feb 2026 21:14:25 +0100 Subject: [PATCH] Update databasus.sh --- ct/databasus.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ct/databasus.sh b/ct/databasus.sh index be21df7a3..1035c1cf3 100644 --- a/ct/databasus.sh +++ b/ct/databasus.sh @@ -45,12 +45,8 @@ function update_script() { done # Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13) if ! command -v mongodump &>/dev/null; then - MONGO_ARCH=$(get_system_arch uname) [[ "$(get_os_info id)" == "ubuntu" ]] && MONGO_DIST="ubuntu2204" || MONGO_DIST="debian12" - 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" - $STD dpkg -i "$tmp_file" || $STD apt install -f -y --no-install-recommends - rm -f "$tmp_file" + fetch_and_deploy_from_url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-x86_64-100.14.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