From 9941a27777d60b4a3411f5c4f49c9434ca3e9e09 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:41:22 +0100 Subject: [PATCH 1/3] Refactor gitea-mirror-install.sh to streamline setup Removed Bun installation steps and added cleanup_lxc function. --- install/gitea-mirror-install.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/install/gitea-mirror-install.sh b/install/gitea-mirror-install.sh index 7f15bd7af..d8f42ce90 100644 --- a/install/gitea-mirror-install.sh +++ b/install/gitea-mirror-install.sh @@ -21,13 +21,7 @@ $STD apt-get install -y \ unzip msg_ok "Installed Dependencies" -msg_info "Installing Bun" -export BUN_INSTALL=/opt/bun -curl -fsSL https://bun.sh/install | $STD bash -ln -sf /opt/bun/bin/bun /usr/local/bin/bun -ln -sf /opt/bun/bin/bun /usr/local/bin/bunx -msg_ok "Installed Bun" - +NODE_VERSION="22" NODE_MODULES="bun" setup_nodejs fetch_and_deploy_gh_release "gitea-mirror" "RayLabsHQ/gitea-mirror" msg_info "Installing gitea-mirror" @@ -70,8 +64,4 @@ msg_ok "Created Service" motd_ssh customize - -msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean -msg_ok "Cleaned" +cleanup_lxc From 17614774d7abdb7c061366949820251588380f8c Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:42:58 +0100 Subject: [PATCH 2/3] Remove installation of unnecessary dependencies Removed dependency installation for build-essential, openssl, sqlite3, and unzip. --- install/gitea-mirror-install.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/install/gitea-mirror-install.sh b/install/gitea-mirror-install.sh index d8f42ce90..3ec7171bd 100644 --- a/install/gitea-mirror-install.sh +++ b/install/gitea-mirror-install.sh @@ -13,14 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing dependencies" -$STD apt-get install -y \ - build-essential \ - openssl \ - sqlite3 \ - unzip -msg_ok "Installed Dependencies" - NODE_VERSION="22" NODE_MODULES="bun" setup_nodejs fetch_and_deploy_gh_release "gitea-mirror" "RayLabsHQ/gitea-mirror" From 4c4943dc19fac25eae3f26db53ca258839f79830 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:44:00 +0100 Subject: [PATCH 3/3] Refactor gitea-mirror.sh to use Node.js setup Removed Bun installation steps and set up Node.js with Bun. --- ct/gitea-mirror.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ct/gitea-mirror.sh b/ct/gitea-mirror.sh index 1c30f38ed..ac227bcca 100644 --- a/ct/gitea-mirror.sh +++ b/ct/gitea-mirror.sh @@ -89,12 +89,7 @@ EOF cp /opt/gitea-mirror/data/* /opt/gitea-mirror-backup/data/ msg_ok "Backup Data" - msg_info "Installing Bun" - export BUN_INSTALL=/opt/bun - curl -fsSL https://bun.sh/install | $STD bash - ln -sf /opt/bun/bin/bun /usr/local/bin/bun - ln -sf /opt/bun/bin/bun /usr/local/bin/bunx - msg_ok "Installed Bun" + NODE_VERSION="22" NODE_MODULES="bun" setup_nodejs rm -rf /opt/gitea-mirror fetch_and_deploy_gh_release "gitea-mirror" "RayLabsHQ/gitea-mirror"