mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-14 18:10:33 +02:00
Merge pull request #2394 from moaead/fix/issue-2393-web-terminal-login
fix(birdnet-pi): enable web terminal login when no password is set
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
- Fix passwordless terminal
|
||||||
|
|
||||||
## 2025.12-05 (2025-12-20)
|
## 2025.12-05 (2025-12-20)
|
||||||
- Minor bugs fixed
|
- Minor bugs fixed
|
||||||
## 2025.12-04 (2025-12-19)
|
## 2025.12-04 (2025-12-19)
|
||||||
|
|||||||
@@ -116,5 +116,5 @@ tmpfs: true
|
|||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi
|
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi
|
||||||
usb: true
|
usb: true
|
||||||
version: 2025.12-05
|
version: 2026.01.21
|
||||||
video: true
|
video: true
|
||||||
|
|||||||
@@ -30,7 +30,9 @@ if [[ -n "${PI_PASSWORD:-}" ]]; then
|
|||||||
echo "pi:${PI_PASSWORD}" | chpasswd
|
echo "pi:${PI_PASSWORD}" | chpasswd
|
||||||
bashio::log.info "Password set successfully for user pi."
|
bashio::log.info "Password set successfully for user pi."
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
# Use timezone defined in add-on options if available
|
# Use timezone defined in add-on options if available
|
||||||
|
|||||||
Reference in New Issue
Block a user