mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
Update 99-run.sh
This commit is contained in:
@@ -64,6 +64,11 @@ if [ -n "${ALSA_CARD:-}" ]; then
|
||||
done
|
||||
fi
|
||||
|
||||
# Define permissions for audio
|
||||
AUDIO_GID=$(stat -c %g /dev/snd/* | head -n1) && \
|
||||
( groupmod -o -g "$AUDIO_GID" audio 2>/dev/null || groupadd -o -g "$AUDIO_GID" audio || true ) && \
|
||||
usermod -aG audio "${USER:-pi}" || true
|
||||
|
||||
# Fix timezone as per installer
|
||||
CURRENT_TIMEZONE="$(timedatectl show --value --property=Timezone)"
|
||||
[ -f /etc/timezone ] && echo "$CURRENT_TIMEZONE" | sudo tee /etc/timezone > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user