From fa5ad3450aa835789147c079c0fdd354e0109287 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:52:06 +0200 Subject: [PATCH] Update Dockerfile --- zzz_draft_birdnet-pi/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zzz_draft_birdnet-pi/Dockerfile b/zzz_draft_birdnet-pi/Dockerfile index 88fab9608..52c061ea6 100644 --- a/zzz_draft_birdnet-pi/Dockerfile +++ b/zzz_draft_birdnet-pi/Dockerfile @@ -28,7 +28,7 @@ RUN \ # Create user groupadd --gid 1000 birdnet && useradd --uid 1000 --gid birdnet --shell /bin/bash --create-home birdnet && \ echo "birdnet ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ - echo "birdnet ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/010_birdnet-nopasswd + echo "birdnet ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/010_birdnet-nopasswd && \ \ # Install app #curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh -o /newinstaller.sh && \ @@ -37,10 +37,10 @@ RUN \ sed -i "s|sudo apt update|echo \"yes\"|g" /newinstaller.sh && \ sed -i "s|apt |apt-get |g" /newinstaller.sh && \ sed -i "s|sudo -n true|true|g" /newinstaller.sh && \ - for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do sed -i "/sudo/c echo \"sudo replaced\"" "$file"; done && \ - /./newinstaller.sh + #for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do sed -i "/sudo/c echo \"sudo replaced\"" "$file"; done && \ + #/./newinstaller.sh # Correct for absence of sudo - #sudo -E -u birdnet -s /bin/bash -c "/newinstaller.sh" + sudo -E -u birdnet -s /bin/bash -c "/newinstaller.sh" ################## # 2 Modify Image #