From ce0cd2a0faeed3e72cf721de11512c4fab6784c9 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 Feb 2025 09:54:05 +0100 Subject: [PATCH] ps_password --- birdnet-pi/rootfs/etc/cont-init.d/99-run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh index 174ff66d4..4035dadd2 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh @@ -7,7 +7,9 @@ set -e ############## bashio::log.info "Setting password for the user pi" -echo "pi:$(bashio::config "pi_password")" | chpasswd +if bashio::config.has_value "pi_password"; then + echo "pi:$(bashio::config "pi_password")" | chpasswd +fi bashio::log.info "Password set successfully for user pi." bashio::log.info "Setting timezone :"