mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
Add permission audio @ignmedia
https://github.com/alexbelgium/hassio-addons/issues/1991#issuecomment-3149293863
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user