Refactor gitea-mirror-install.sh to streamline setup

Removed Bun installation steps and added cleanup_lxc function.
This commit is contained in:
Tobias 2025-11-12 11:41:22 +01:00 committed by GitHub
parent 5b1c9812ce
commit 9941a27777
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,13 +21,7 @@ $STD apt-get install -y \
unzip unzip
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Bun" NODE_VERSION="22" NODE_MODULES="bun" setup_nodejs
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"
fetch_and_deploy_gh_release "gitea-mirror" "RayLabsHQ/gitea-mirror" fetch_and_deploy_gh_release "gitea-mirror" "RayLabsHQ/gitea-mirror"
msg_info "Installing gitea-mirror" msg_info "Installing gitea-mirror"
@ -70,8 +64,4 @@ msg_ok "Created Service"
motd_ssh motd_ssh
customize customize
cleanup_lxc
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"