From 9228cd06e3ef427b5f2aad18dd74648d0582ce10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sat, 9 Aug 2025 10:03:01 +0200 Subject: [PATCH] Fixes (#6702) --- ct/homebox.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ct/homebox.sh b/ct/homebox.sh index 2aa80dd69..aff20c85b 100644 --- a/ct/homebox.sh +++ b/ct/homebox.sh @@ -29,6 +29,7 @@ function update_script() { if [[ -x /opt/homebox ]]; then sed -i 's|/opt\b|/opt/homebox|g' /etc/systemd/system/homebox.service sed -i 's|^ExecStart=/opt/homebox$|ExecStart=/opt/homebox/homebox|' /etc/systemd/system/homebox.service + systemctl daemon-reload fi RELEASE=$(curl -fsSL https://api.github.com/repos/sysadminsmedia/homebox/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') @@ -37,9 +38,11 @@ function update_script() { systemctl stop homebox msg_ok "${APP} Stopped" + [ -x /opt/homebox ] && rm -f /opt/homebox fetch_and_deploy_gh_release "homebox" "sysadminsmedia/homebox" "prebuild" "latest" "/opt/homebox" "homebox_Linux_x86_64.tar.gz" chmod +x /opt/homebox/homebox [ -f /opt/.env ] && mv /opt/.env /opt/homebox/.env + [ -d /opt/.data ] && mv /opt/.data /opt/homebox/.data msg_info "Starting ${APP}" systemctl start homebox