Homebox: Fix Update Script (#7232)

* Homebox: Fix Update Script

* Update homebox.sh to improve executable removal logic
This commit is contained in:
CanbiZ 2025-08-27 09:32:45 +02:00 committed by GitHub
parent d25a12c87e
commit 27cd66f48a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,9 @@ function update_script() {
systemctl stop homebox
msg_ok "${APP} Stopped"
[ -x /opt/homebox ] && rm -f /opt/homebox
if [ -f /opt/homebox ] && [ -x /opt/homebox ]; then
rm -f /opt/homebox
fi
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