Add permission audio @ignmedia

https://github.com/alexbelgium/hassio-addons/issues/1991#issuecomment-3149293863
This commit is contained in:
Alexandre
2025-08-04 08:39:53 +02:00
committed by GitHub
parent 61d98c1fc6
commit 290798bca0

View File

@@ -18,6 +18,10 @@ fi
# SET SYSTEM #
##############
#####################
# ADD USER TO AUDIO #
#####################
# Set password
bashio::log.info "Setting password for the user pi"
if bashio::config.has_value "pi_password"; then
@@ -64,6 +68,10 @@ if [ -n "${ALSA_CARD:-}" ]; then
done
fi
# Give permission to group audio
bashio::log.info "Adding user to audio group"
sudo usermod -aG audio 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