From 058f68a0f97f50ddfd9983b6c04c49271100680f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:55:20 +0200 Subject: [PATCH] Update Dockerfile --- zzz_draft_birdnet-pi/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zzz_draft_birdnet-pi/Dockerfile b/zzz_draft_birdnet-pi/Dockerfile index 5f1f6c56e..16254f0f1 100644 --- a/zzz_draft_birdnet-pi/Dockerfile +++ b/zzz_draft_birdnet-pi/Dockerfile @@ -40,6 +40,13 @@ RUN \ sed -i "s|sudo|#sudo|g" /newinstaller.sh && \ cat /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