From ced4363e64fac553f30176492d0ea260e0d9dc29 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 21 Mar 2025 10:45:21 +0100 Subject: [PATCH] ensure pi --- battybirdnet-pi/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/battybirdnet-pi/Dockerfile b/battybirdnet-pi/Dockerfile index 5eb2d906e..22209c4eb 100644 --- a/battybirdnet-pi/Dockerfile +++ b/battybirdnet-pi/Dockerfile @@ -108,6 +108,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/*