diff --git a/webtop/rootfs/etc/cont-init.d/93-apps_install.sh b/webtop/rootfs/etc/cont-init.d/93-apps_install.sh new file mode 100644 index 000000000..7327786e7 --- /dev/null +++ b/webtop/rootfs/etc/cont-init.d/93-apps_install.sh @@ -0,0 +1,13 @@ +#!/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 \ + && bashio::log.green "... done" \ + || bashio::log.red "... not successful" + done +fi