From 1476849f3c7d4122336745fc0c35bafb7a2be072 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 23 Apr 2026 15:51:01 +0200 Subject: [PATCH] twingate-connector: perform real apt upgrade during update flow (#13959) * fix(twingate-connector): perform real apt upgrade during update flow The update path used ensure_dependencies, which only installs missing packages and does not upgrade already installed ones. As a result, users could see 'Updated successfully' even when a newer twingate-connector version was available. Switch update_script to a real package update flow: - ensure apt is healthy - refresh apt metadata - install/upgrade twingate-connector via retry helper - restart service This aligns behavior with Twingate's documented upgrade process. * Update twingate-connector.sh --- ct/twingate-connector.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ct/twingate-connector.sh b/ct/twingate-connector.sh index 1c662686b..0f97f1877 100644 --- a/ct/twingate-connector.sh +++ b/ct/twingate-connector.sh @@ -29,8 +29,9 @@ function update_script() { exit fi - msg_info "Updating ${APP}" - ensure_dependencies twingate-connector + msg_info "Updating Twingate Connector" + $STD apt update + $STD apt install -y --only-upgrade twingate-connector $STD systemctl restart twingate-connector msg_ok "Updated successfully!" exit