diff --git a/ct/homebox.sh b/ct/homebox.sh index aff20c85b..774f4d433 100644 --- a/ct/homebox.sh +++ b/ct/homebox.sh @@ -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