diff --git a/zzz_draft_birdnet-pi/Dockerfile b/zzz_draft_birdnet-pi/Dockerfile index 19a9320c4..0db9b3da3 100644 --- a/zzz_draft_birdnet-pi/Dockerfile +++ b/zzz_draft_birdnet-pi/Dockerfile @@ -30,6 +30,13 @@ RUN \ groupadd --gid 1000 birdnet && useradd --uid 1000 --gid birdnet --shell /bin/bash --create-home birdnet && \ echo "birdnet ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ \ + if type sudo 2>/dev/null; then \ + echo "The sudo command already exists... Skipping."; \ + else \ + echo "#!/bin/sh\n\${@}" > /usr/sbin/sudo; \ + chmod +x /usr/sbin/sudo; \ + fi && \ + \ # Install app #curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh -o /newinstaller.sh && \ curl -f -L -s -S "https://raw.githubusercontent.com/Nachtzuster/BirdNET-Pi/main/newinstaller.sh" -o /newinstaller.sh && \ @@ -41,13 +48,6 @@ RUN \ cat /newinstaller.sh && \ sudo -u birdnet -s /bin/bash -c "/newinstaller.sh" -RUN if type sudo 2>/dev/null; then \ - echo "The sudo command already exists... Skipping."; \ - else \ - echo -e "#!/bin/sh\n\${@}" > /usr/sbin/sudo; \ - chmod +x /usr/sbin/sudo; \ - fi - USER birdnet RUN "/./newinstaller.sh" USER root