From 0909132d5caeb527987859a2af1956155ea46932 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:27:34 +0100 Subject: [PATCH] Fix: Homebox Update Script (#1284) * Update homebox * Update homebox --- ct/homebox.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ct/homebox.sh b/ct/homebox.sh index 75490965..ea0249a4 100644 --- a/ct/homebox.sh +++ b/ct/homebox.sh @@ -37,11 +37,13 @@ function update_script() { systemctl stop homebox msg_ok "${APP} Stopped" - msg_info "Updating ${APP} to ${RELEASE}" + msg_info "Updating ${APP} to v${RELEASE}" cd /opt rm -rf homebox_bak + rm -rf /tmp/homebox.tar.gz mv homebox homebox_bak - wget -qO- https://github.com/sysadminsmedia/homebox/releases/download/${RELEASE}/homebox_Linux_x86_64.tar.gz | tar -xzf - -C /opt + wget -qO /tmp/homebox.tar.gz https://github.com/sysadminsmedia/homebox/releases/download/${RELEASE}/homebox_Linux_x86_64.tar.gz + tar -xzf /tmp/homebox.tar.gz -C /opt chmod +x /opt/homebox echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated Homebox" @@ -52,7 +54,7 @@ function update_script() { msg_ok "Updated Successfully" else - msg_ok "No update required. ${APP} is already at ${RELEASE}" + msg_ok "No update required. ${APP} is already at v${RELEASE}" fi exit }