From d3c3004d66c2ec3db1710fa96c6ad6de723923fa Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 4 Feb 2022 18:10:11 +0100 Subject: [PATCH] Update 99-run.sh --- webtop_kde/rootfs/etc/cont-init.d/99-run.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/webtop_kde/rootfs/etc/cont-init.d/99-run.sh b/webtop_kde/rootfs/etc/cont-init.d/99-run.sh index 4906a1707..43680444c 100644 --- a/webtop_kde/rootfs/etc/cont-init.d/99-run.sh +++ b/webtop_kde/rootfs/etc/cont-init.d/99-run.sh @@ -29,12 +29,7 @@ if bashio::config.has_value 'additional_apps'; then NEWAPPS=$(bashio::config 'additional_apps') for APP in ${NEWAPPS//,/ }; do bashio::log.green "... $APP" - if command -v "apk" &>/dev/null; then - # If apk based - apk add --no-cache "$APP" &>/dev/null - else - # If apt-get based - apt-get install -yqq "$APP" &>/dev/null - fi && bashio::log.green "... done" || bashio::log.red "... not successful, please check package name" + apk add --no-cache "$APP" &>/dev/null || apt-get install -yqq "$APP" &>/dev/null \ + && bashio::log.green "... done" || bashio::log.red "... not successful, please check package name" done fi