mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 10:11:53 +02:00
Update 99-run.sh
This commit is contained in:
@@ -29,12 +29,7 @@ if bashio::config.has_value 'additional_apps'; then
|
|||||||
NEWAPPS=$(bashio::config 'additional_apps')
|
NEWAPPS=$(bashio::config 'additional_apps')
|
||||||
for APP in ${NEWAPPS//,/ }; do
|
for APP in ${NEWAPPS//,/ }; do
|
||||||
bashio::log.green "... $APP"
|
bashio::log.green "... $APP"
|
||||||
if command -v "apk" &>/dev/null; then
|
apk add --no-cache "$APP" &>/dev/null || apt-get install -yqq "$APP" &>/dev/null \
|
||||||
# If apk based
|
&& bashio::log.green "... done" || bashio::log.red "... not successful, please check package name"
|
||||||
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"
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user