From 5127c85ca74f94b30ac324a31c2b109d97320ce1 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sat, 26 Sep 2026 20:54:46 +0200 Subject: [PATCH] Keep Trilium updates on the server releases (#17525) The repo also publishes web-clipper-v* releases, and whenever upstream marked one of those as latest the update offered to replace the server with the browser extension. A v prefix makes core pick the newest stable server release itself instead of trusting that marking. --- ct/trilium.sh | 4 ++-- install/trilium-install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/trilium.sh b/ct/trilium.sh index 4f149a1c1..184410884 100644 --- a/ct/trilium.sh +++ b/ct/trilium.sh @@ -30,7 +30,7 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - if check_for_gh_release "Trilium" "TriliumNext/Trilium"; then + if check_for_gh_release "Trilium" "TriliumNext/Trilium" "" "" "v"; then if [[ -d /opt/trilium/db ]]; then DB_PATH="/opt/trilium/db" DB_RESTORE_PATH="/opt/trilium/db" @@ -53,7 +53,7 @@ function update_script() { rm -rf /opt/trilium msg_ok "Backed up Database" - fetch_and_deploy_gh_release "Trilium" "TriliumNext/Trilium" "prebuild" "latest" "/opt/trilium" "TriliumNotes-Server-*linux-$(arch_resolve "x64" "arm64").tar.xz" + fetch_and_deploy_gh_release "Trilium" "TriliumNext/Trilium" "prebuild" "latest" "/opt/trilium" "TriliumNotes-Server-*linux-$(arch_resolve "x64" "arm64").tar.xz" "v" msg_info "Restoring Database" mkdir -p "$(dirname "${DB_RESTORE_PATH}")" diff --git a/install/trilium-install.sh b/install/trilium-install.sh index 747e3e45a..c7791bf51 100644 --- a/install/trilium-install.sh +++ b/install/trilium-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -fetch_and_deploy_gh_release "Trilium" "TriliumNext/Trilium" "prebuild" "latest" "/opt/trilium" "TriliumNotes-Server-*linux-$(arch_resolve "x64" "arm64").tar.xz" +fetch_and_deploy_gh_release "Trilium" "TriliumNext/Trilium" "prebuild" "latest" "/opt/trilium" "TriliumNotes-Server-*linux-$(arch_resolve "x64" "arm64").tar.xz" "v" msg_info "Creating Service" cat </etc/systemd/system/trilium.service