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:
Moaead Yahya
2026-01-20 23:02:03 +00:00
parent 96954ea852
commit d1f6ca64a6

View File

@@ -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