From 861c9b025893f3b7dbd6934b889767f03b30c768 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 17 Jul 2025 08:01:32 +0200 Subject: [PATCH] Update ha_autoapps.sh --- .templates/ha_autoapps.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.templates/ha_autoapps.sh b/.templates/ha_autoapps.sh index 11c62e266..96a197c3d 100755 --- a/.templates/ha_autoapps.sh +++ b/.templates/ha_autoapps.sh @@ -20,9 +20,11 @@ if ! command -v curl >/dev/null 2>/dev/null; then fi # Call apps installer script if needed -if ! curl -f -L -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automatic_packages.sh" --output /ha_automatic_packages.sh; then - echo "Failed to download the file" >&2 - exit 1 +if [ ! -f /ha_automatic_packages.sh ]; then + if ! curl -f -L -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automatic_packages.sh" --output /ha_automatic_packages.sh; then + echo "Failed to download the file" >&2 + exit 1 + fi fi chmod 777 /ha_automatic_packages.sh eval /./ha_automatic_packages.sh "${PACKAGES:-}"