This commit is contained in:
Alexandre
2022-02-18 13:06:51 +01:00
parent ed9845962b
commit 3db34e34f2
12 changed files with 50 additions and 41 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# Define user
PUID=$(bashio::config "PUID")
@@ -27,5 +28,5 @@ echo "Creating $LOCATION"
mkdir -p "$LOCATION"
# Set ownership
bashio::log.info "Setting ownership to $PUID:$PGID"
bashio::log.info "Setting ownership to $PUID:$PGID"
chown "$PUID":"$PGID" "$LOCATION"

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# shellcheck disable=SC2116
# Add Edge repositories
if bashio::config.true 'edge_repositories'; then
@@ -12,7 +13,7 @@ fi
# Install rpi video drivers
if bashio::config.true 'rpi_video_drivers'; then
bashio::log.info "Installing Rpi graphic drivers"
apk add --no-cache mesa-dri-vc4 mesa-dri-swrast mesa-gbm xf86-video-fbdev >/dev/null && bashio::log.green "... done" ||
apk add --no-cache mesa-dri-vc4 mesa-dri-swrast mesa-gbm xf86-video-fbdev >/dev/null && bashio::log.green "... done" ||
bashio::log.red "... not successful. Are you on a rpi?"
fi