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" diff --git a/install/gitea-mirror-install.sh b/install/gitea-mirror-install.sh index 7f15bd7af..3ec7171bd 100644 --- a/install/gitea-mirror-install.sh +++ b/install/gitea-mirror-install.sh @@ -13,21 +13,7 @@ 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" - -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 +56,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