Update 99-run.sh

This commit is contained in:
Alexandre
2022-01-11 14:54:27 +01:00
committed by GitHub
parent 0997cb13c5
commit 7a5ee53693

View File

@@ -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