From ddc06f6b11b706f7f36ab38cfbfeb765bbca7264 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 3 Feb 2022 22:00:32 +0100 Subject: [PATCH] Update 99-run.sh --- webtop/rootfs/etc/cont-init.d/99-run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webtop/rootfs/etc/cont-init.d/99-run.sh b/webtop/rootfs/etc/cont-init.d/99-run.sh index 44b6be9ef..886fb385b 100644 --- a/webtop/rootfs/etc/cont-init.d/99-run.sh +++ b/webtop/rootfs/etc/cont-init.d/99-run.sh @@ -3,8 +3,8 @@ # Uprade echo "Updating distribution" -apt-get update &>/dev/null -apt-get -y upgrade &>/dev/null || true +apt-get update &>/dev/null || apk update &>/dev/null || true +apt-get -y upgrade &>/dev/null || apk upgrade --available &>/dev/null || true # Fix mate software center if [ -f /usr/lib/dbus-1.0/dbus-daemon-launch-helper ]; then @@ -20,7 +20,7 @@ if bashio::config.has_value 'additional_apps'; then for APP in $(echo "$(bashio::config 'additional_apps')" | tr "," " "); do bashio::log.green "... $APP" # Test install with both apt-get and snap - apt-get install -yqq $APP &>/dev/null && + apt-get install -yqq $APP &>/dev/null || apk add --no-cache $APP &>/dev/null && bashio::log.green "... done" || bashio::log.red "... not successful, please check package name" done