From 5a3f605384cc09eaa049fc44f587c00128a0d8d3 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 27 May 2025 14:47:37 +0200 Subject: [PATCH] fixes --- ct/linkwarden.sh | 4 ++-- misc/tools.func | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ct/linkwarden.sh b/ct/linkwarden.sh index 589bbd27..4e652dbf 100644 --- a/ct/linkwarden.sh +++ b/ct/linkwarden.sh @@ -22,12 +22,12 @@ function update_script() { header_info check_container_storage check_container_resources - if [[ ! -d /opt/Linkwarden ]]; then + if [[ ! -d /opt/linkwarden ]]; then msg_error "No ${APP} Installation Found!" exit fi RELEASE=$(curl -fsSL https://api.github.com/repos/linkwarden/linkwarden/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - if [[ "${RELEASE}" != "$(cat /opt/linkwarden_version.txt)" ]] || [[ ! -f /opt/linkwarden_version.txt ]]; then + if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then NODE_VERSION="22" NODE_MODULE="yarn@latest" install_node_and_modules msg_info "Stopping ${APP}" systemctl stop linkwarden diff --git a/misc/tools.func b/misc/tools.func index e911ebb5..6ccaa0b9 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -675,7 +675,8 @@ install_mongodb() { fetch_and_deploy_gh_release() { local repo="$1" - local app=${APP:-$(echo "${APPLICATION,,}" | tr -d ' ')} + local raw_app="${APP:-$APPLICATION}" + local app=$(echo "${raw_app,,}" | tr -d ' ') local api_url="https://api.github.com/repos/$repo/releases/latest" local header=() local attempt=0