Homebox: Fix Update Script (#7232)
* Homebox: Fix Update Script * Update homebox.sh to improve executable removal logic
This commit is contained in:
parent
d25a12c87e
commit
27cd66f48a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user