Update tools.func

This commit is contained in:
CanbiZ 2025-06-02 13:21:48 +02:00
parent 2b25ec9c2d
commit 1d5d678021

View File

@ -678,14 +678,14 @@ install_mongodb() {
install_from_gh_release() { install_from_gh_release() {
local app="$1" local app="$1"
local repo="$2" local repo="$2"
local mode="$3" # source|binary local mode="${3:-source}" # Default: source
local version="$4" # optional local version="${4:-}" # Default: latest
local deb_name="$5" # optional local deb_name="${5:-}" # Default: empty
APP="$app" APP="$app"
INSTALL_DIR="/opt/$app" INSTALL_DIR="/opt/$app"
VERSION="${version:-}" VERSION="$version"
SOURCE_PACKAGE="${deb_name:-}" SOURCE_PACKAGE="$deb_name"
BUILD_SOURCE=$([[ "$mode" == "binary" ]] && echo 0 || echo 1) BUILD_SOURCE=$([[ "$mode" == "binary" ]] && echo 0 || echo 1)
fetch_and_deploy_gh_release "$repo" fetch_and_deploy_gh_release "$repo"