mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-22 08:41:50 +02:00
Update 80-configuration.sh
This commit is contained in:
@@ -1,10 +1,17 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# Uprade
|
# Adding communuity repository
|
||||||
echo "Updating distribution"
|
echo "https://dl-cdn.alpinelinux.org/alpine/edge/releases"; } >> /etc/apk/repositories
|
||||||
apk update &>/dev/null || apt-get update &>/dev/null || true
|
|
||||||
apk upgrade &>/dev/null || apt-get -y upgrade &>/dev/null || true
|
# Add Edge repositories
|
||||||
|
if bashio::config.true 'edge_repositories'; then
|
||||||
|
bashio::log.info "Changing app repositories to edge"
|
||||||
|
{ echo "https://dl-cdn.alpinelinux.org/alpine/edge/community";
|
||||||
|
echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing";
|
||||||
|
echo "https://dl-cdn.alpinelinux.org/alpine/edge/main";
|
||||||
|
echo "https://dl-cdn.alpinelinux.org/alpine/edge/releases"; } > /etc/apk/repositories
|
||||||
|
fi
|
||||||
|
|
||||||
# Install rpi video drivers
|
# Install rpi video drivers
|
||||||
if bashio::config.true 'rpi_video_drivers'; then
|
if bashio::config.true 'rpi_video_drivers'; then
|
||||||
@@ -20,15 +27,6 @@ if [ -f /usr/lib/dbus-1.0/dbus-daemon-launch-helper ]; then
|
|||||||
service dbus restart
|
service dbus restart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add Edge repositories
|
|
||||||
if bashio::config.true 'edge_repositories'; then
|
|
||||||
bashio::log.info "Changing app repositories to edge"
|
|
||||||
{ echo "https://dl-cdn.alpinelinux.org/alpine/edge/community";
|
|
||||||
echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing";
|
|
||||||
echo "https://dl-cdn.alpinelinux.org/alpine/edge/main";
|
|
||||||
echo "https://dl-cdn.alpinelinux.org/alpine/edge/releases"; } > /etc/apk/repositories
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install specific apps
|
# Install specific apps
|
||||||
if bashio::config.has_value 'additional_apps'; then
|
if bashio::config.has_value 'additional_apps'; then
|
||||||
bashio::log.info "Installing additional apps :"
|
bashio::log.info "Installing additional apps :"
|
||||||
|
|||||||
Reference in New Issue
Block a user