From c499d4fc1463d2bd3f5abcac886767ce94844d76 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Fri, 26 Jun 2026 21:07:36 +0200 Subject: [PATCH] fix(degoog): restore bun symlinks after curl-impersonate update The curl-impersonate CLEAN_INSTALL wipes /usr/local/bin, which removed the bun/bunx symlinks during update. Re-create them after the release deploy. --- ct/degoog.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ct/degoog.sh b/ct/degoog.sh index 97312acdb..feaaa13cc 100644 --- a/ct/degoog.sh +++ b/ct/degoog.sh @@ -38,12 +38,10 @@ function update_script() { create_backup /opt/degoog/.env \ /opt/degoog/data - if ! command -v bun >/dev/null 2>&1; then + if [[ ! -x /root/.bun/bin/bun ]]; then msg_info "Installing Bun" export BUN_INSTALL="/root/.bun" curl -fsSL https://bun.sh/install | $STD bash - ln -sf /root/.bun/bin/bun /usr/local/bin/bun - ln -sf /root/.bun/bin/bunx /usr/local/bin/bunx msg_ok "Installed Bun" fi @@ -54,6 +52,10 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "degoog" "fccview/degoog" "prebuild" "latest" "/opt/degoog" "degoog_*_prebuild.tar.gz" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "curl-impersonate" "lexiforest/curl-impersonate" "prebuild" "latest" "/usr/local/bin" "curl-impersonate-v*.$(uname -m)-linux-gnu.tar.gz" + # CLEAN_INSTALL wipes /usr/local/bin, so re-create the Bun symlinks afterwards + ln -sf /root/.bun/bin/bun /usr/local/bin/bun + ln -sf /root/.bun/bin/bunx /usr/local/bin/bunx + restore_backup if [[ -f /opt/degoog/.env ]]; then