From e2265c2d89d6b62d5eaf39c9c4779d170d3cc450 Mon Sep 17 00:00:00 2001 From: amir-climy Date: Tue, 19 May 2026 19:58:02 +0800 Subject: [PATCH] fix(get.sh): refresh installer files before uninstall The uninstall shortcut was executing the stale on-disk uninstall.sh without refreshing it first, unlike the upgrade path. This meant fixes to uninstall.sh were never picked up by existing installations. Refresh all installer files before exec-ing uninstall.sh. Co-Authored-By: Claude Sonnet 4.6 --- get.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/get.sh b/get.sh index 628f14c..55a9eb4 100644 --- a/get.sh +++ b/get.sh @@ -75,8 +75,15 @@ if [[ $UNINSTALL -eq 1 ]]; then if [[ "$PLATFORM" == "linux" && $EUID -ne 0 ]]; then die "run as root on Linux:\n\n curl -fsSL https://raw.githubusercontent.com/primatekuntech/triton-install/main/get.sh | sudo bash -s -- --uninstall" fi - [[ -f "${INSTALL_DIR}/uninstall.sh" ]] \ + [[ -d "$INSTALL_DIR" ]] \ || die "Triton Manage Server does not appear to be installed (${INSTALL_DIR} not found)" + info "refreshing installer files..." + for f in "${INSTALLER_FILES[@]}"; do + curl -fsSL "${REPO_BASE}/${f}" -o "${INSTALL_DIR}/${f}" + done + chmod +x "${INSTALL_DIR}/install.sh" "${INSTALL_DIR}/upgrade.sh" "${INSTALL_DIR}/uninstall.sh" + ok "installer files refreshed" + echo "" exec bash "${INSTALL_DIR}/uninstall.sh" "${PASSTHROUGH[@]}" fi