mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +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 #
|
# SET SYSTEM #
|
||||||
##############
|
##############
|
||||||
|
|
||||||
|
#####################
|
||||||
|
# ADD USER TO AUDIO #
|
||||||
|
#####################
|
||||||
|
|
||||||
# Set password
|
# Set password
|
||||||
bashio::log.info "Setting password for the user pi"
|
bashio::log.info "Setting password for the user pi"
|
||||||
if bashio::config.has_value "pi_password"; then
|
if bashio::config.has_value "pi_password"; then
|
||||||
@@ -64,6 +68,10 @@ if [ -n "${ALSA_CARD:-}" ]; then
|
|||||||
done
|
done
|
||||||
fi
|
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
|
# Fix timezone as per installer
|
||||||
CURRENT_TIMEZONE="$(timedatectl show --value --property=Timezone)"
|
CURRENT_TIMEZONE="$(timedatectl show --value --property=Timezone)"
|
||||||
[ -f /etc/timezone ] && echo "$CURRENT_TIMEZONE" | sudo tee /etc/timezone > /dev/null
|
[ -f /etc/timezone ] && echo "$CURRENT_TIMEZONE" | sudo tee /etc/timezone > /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user