Refactor gitea-mirror.sh to use Node.js setup

Removed Bun installation steps and set up Node.js with Bun.
This commit is contained in:
Tobias 2025-11-12 11:44:00 +01:00 committed by GitHub
parent 17614774d7
commit 4c4943dc19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,12 +89,7 @@ EOF
cp /opt/gitea-mirror/data/* /opt/gitea-mirror-backup/data/ cp /opt/gitea-mirror/data/* /opt/gitea-mirror-backup/data/
msg_ok "Backup Data" msg_ok "Backup Data"
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"
rm -rf /opt/gitea-mirror rm -rf /opt/gitea-mirror
fetch_and_deploy_gh_release "gitea-mirror" "RayLabsHQ/gitea-mirror" fetch_and_deploy_gh_release "gitea-mirror" "RayLabsHQ/gitea-mirror"