mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 17:38:17 +01:00
14 lines
492 B
Bash
14 lines
492 B
Bash
#!/usr/bin/with-contenv bashio
|
|
|
|
if bashio::config.has_value 'additional_apps'; then
|
|
bashio::log.info "Installing additional apps :"
|
|
apt-get update &>/dev/null
|
|
# Install apps
|
|
for APP in $(echo "$(bashio::config 'additional_apps')" | tr "," " "); do
|
|
bashio::log.green "... $APP"
|
|
apt-get install -yqq $APP &>/dev/null \
|
|
&& bashio::log.green "... done" \
|
|
|| bashio::log.red "... not successful"
|
|
done
|
|
fi
|