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:
parent
17614774d7
commit
4c4943dc19
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user