mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 14:54:07 +02:00
Update ha_autoapps.sh
This commit is contained in:
@@ -20,9 +20,11 @@ if ! command -v curl >/dev/null 2>/dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Call apps installer script if needed
|
# 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
|
if [ ! -f /ha_automatic_packages.sh ]; then
|
||||||
echo "Failed to download the file" >&2
|
if ! curl -f -L -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automatic_packages.sh" --output /ha_automatic_packages.sh; then
|
||||||
exit 1
|
echo "Failed to download the file" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
chmod 777 /ha_automatic_packages.sh
|
chmod 777 /ha_automatic_packages.sh
|
||||||
eval /./ha_automatic_packages.sh "${PACKAGES:-}"
|
eval /./ha_automatic_packages.sh "${PACKAGES:-}"
|
||||||
|
|||||||
Reference in New Issue
Block a user