mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-18 18:38:17 +01:00
Update Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user