mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-22 08:41:50 +02:00
Update 99-run.sh
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Uprade
|
# Uprade
|
||||||
echo "Updating distribution"
|
echo "Updating distribution"
|
||||||
apt-get update &>/dev/null
|
apt-get update &>/dev/null || apk update &>/dev/null || true
|
||||||
apt-get -y upgrade &>/dev/null || true
|
apt-get -y upgrade &>/dev/null || apk upgrade --available &>/dev/null || true
|
||||||
|
|
||||||
# Fix mate software center
|
# Fix mate software center
|
||||||
if [ -f /usr/lib/dbus-1.0/dbus-daemon-launch-helper ]; then
|
if [ -f /usr/lib/dbus-1.0/dbus-daemon-launch-helper ]; then
|
||||||
@@ -20,7 +20,7 @@ if bashio::config.has_value 'additional_apps'; then
|
|||||||
for APP in $(echo "$(bashio::config 'additional_apps')" | tr "," " "); do
|
for APP in $(echo "$(bashio::config 'additional_apps')" | tr "," " "); do
|
||||||
bashio::log.green "... $APP"
|
bashio::log.green "... $APP"
|
||||||
# Test install with both apt-get and snap
|
# Test install with both apt-get and snap
|
||||||
apt-get install -yqq $APP &>/dev/null &&
|
apt-get install -yqq $APP &>/dev/null || apk add --no-cache $APP &>/dev/null &&
|
||||||
bashio::log.green "... done" ||
|
bashio::log.green "... done" ||
|
||||||
bashio::log.red "... not successful, please check package name"
|
bashio::log.red "... not successful, please check package name"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user