From 5fbe287bb27b59cb3f4bccae75353728171676bc Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 21 Mar 2025 10:45:10 +0100 Subject: [PATCH] Ensure pi --- birdnet-pi/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/birdnet-pi/Dockerfile b/birdnet-pi/Dockerfile index a5ba0f0f5..8d645e3ca 100644 --- a/birdnet-pi/Dockerfile +++ b/birdnet-pi/Dockerfile @@ -109,6 +109,9 @@ RUN \ # Give access to caddy for files owned by the user, to allow files modification groupmod -o -g 1000 caddy && usermod -o -u 1000 caddy && \ \ + # Ensure always pi is used + for file in $(grep -srl "/etc/passwd" $HOME/BirdNET-Pi/); do sed -i "s=/etc/passwd=/etc/passwd | head -1=g" "$file"; done && \ + \ # Cleanup apt-get clean all && \ rm -rf /var/lib/apt/lists/*