From 2a048a17afb5a51479b7cf87e84979a3a3a03d23 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Mon, 2 Jun 2025 13:59:06 +0200 Subject: [PATCH 1/2] Update gitea-mirror.sh --- ct/gitea-mirror.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ct/gitea-mirror.sh b/ct/gitea-mirror.sh index 5ada7ac5..1ece0df2 100644 --- a/ct/gitea-mirror.sh +++ b/ct/gitea-mirror.sh @@ -42,7 +42,7 @@ function update_script() { msg_info "Installing Bun" export BUN_INSTALL=/opt/bun - curl -fsSL https://bun.sh/install | bash + $STD curl -fsSL https://bun.sh/install | 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" @@ -50,18 +50,19 @@ function update_script() { rm -rf /opt/gitea-mirror fetch_and_deploy_gh_release "arunavo4/gitea-mirror" - msg_info "Updating and rebuilding ${APP} to v${RELEASE} (Patience)" + msg_info "Updating and rebuilding ${APP} to v${RELEASE}" cd /opt/gitea-mirror - bun install - bun run build + $STD bun install + $STD bun run build + msg_ok "Updated and rebuilt ${APP} to v${RELEASE}" msg_info "Restoring Data" cp /opt/gitea-mirror-backup/data/* /opt/gitea-mirror/data msg_ok "Restored Data" - msg_info "Starting Services" + msg_info "Starting Service" systemctl start gitea-mirror - msg_ok "Services Started" + msg_ok "Service Started" else msg_ok "No update required. ${APP} is already at v${RELEASE}" fi From a128a69b0ab12ffd82b25357a14b913997eccd38 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Mon, 2 Jun 2025 13:59:44 +0200 Subject: [PATCH 2/2] Update gitea-mirror-install.sh --- install/gitea-mirror-install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/gitea-mirror-install.sh b/install/gitea-mirror-install.sh index 5a78cea3..9a7a6f44 100644 --- a/install/gitea-mirror-install.sh +++ b/install/gitea-mirror-install.sh @@ -23,7 +23,7 @@ msg_ok "Installed Dependencies" msg_info "Installing Bun" export BUN_INSTALL=/opt/bun -curl -fsSL https://bun.sh/install | bash +$STD curl -fsSL https://bun.sh/install | 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" @@ -32,9 +32,9 @@ fetch_and_deploy_gh_release "arunavo4/gitea-mirror" msg_info "Installing gitea-mirror" cd /opt/gitea-mirror -bun install -bun run build -bun run manage-db init +$STD bun install +$STD bun run build +$STD bun run manage-db init msg_ok "Installed gitea-mirror" msg_info "Creating Services"