mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-22 04:26:28 +01:00
fix(birdnet-pi): enable web terminal login when no password is set
The pi user account was locked when pi_password was not configured, causing the web terminal login to fail immediately with "Connection Closed". Now the pi user is given an empty password when no password is specified, enabling passwordless web terminal login. Fixes #2393
This commit is contained in:
@@ -30,7 +30,9 @@ if [[ -n "${PI_PASSWORD:-}" ]]; then
|
||||
echo "pi:${PI_PASSWORD}" | chpasswd
|
||||
bashio::log.info "Password set successfully for user pi."
|
||||
else
|
||||
bashio::log.info "No password specified for user pi. Keeping existing password."
|
||||
# Set empty password to allow web terminal login when no password is configured
|
||||
passwd -d pi
|
||||
bashio::log.info "No password specified for user pi. Enabled passwordless login."
|
||||
fi
|
||||
|
||||
# Use timezone defined in add-on options if available
|
||||
|
||||
Reference in New Issue
Block a user