mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 09:54:36 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue