From 7a5ee536939fbcf3c8cf0408bbf021c1272514c2 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 11 Jan 2022 14:54:27 +0100 Subject: [PATCH] Update 99-run.sh --- webtop/rootfs/etc/cont-init.d/99-run.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/webtop/rootfs/etc/cont-init.d/99-run.sh b/webtop/rootfs/etc/cont-init.d/99-run.sh index 8c159e7ba..9a4da71e4 100644 --- a/webtop/rootfs/etc/cont-init.d/99-run.sh +++ b/webtop/rootfs/etc/cont-init.d/99-run.sh @@ -1,7 +1,23 @@ #!/usr/bin/with-contenv bashio +# Uprade +apt-get dist-upgrade &>/dev/null + # Fix mate software center if [ -f /usr/lib/dbus-1.0/dbus-daemon-launch-helper ]; then chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper service dbus restart fi + +# Install specific apps +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