mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
Create 93-apps_install.sh
This commit is contained in:
13
webtop/rootfs/etc/cont-init.d/93-apps_install.sh
Normal file
13
webtop/rootfs/etc/cont-init.d/93-apps_install.sh
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user