mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-07 21:52:29 +02: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 && \
|
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 && \
|
||||||
\
|
\
|
||||||
|
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
|
# Install app
|
||||||
#curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh -o /newinstaller.sh && \
|
#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 && \
|
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 && \
|
cat /newinstaller.sh && \
|
||||||
sudo -u birdnet -s /bin/bash -c "/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
|
USER birdnet
|
||||||
RUN "/./newinstaller.sh"
|
RUN "/./newinstaller.sh"
|
||||||
USER root
|
USER root
|
||||||
|
|||||||
Reference in New Issue
Block a user