mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-17 04:49:13 +02:00
Update Dockerfile
This commit is contained in:
@@ -40,6 +40,13 @@ RUN \
|
|||||||
sed -i "s|sudo|#sudo|g" /newinstaller.sh && \
|
sed -i "s|sudo|#sudo|g" /newinstaller.sh && \
|
||||||
cat /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
|
USER birdnet
|
||||||
RUN "/./newinstaller.sh"
|
RUN "/./newinstaller.sh"
|
||||||
USER root
|
USER root
|
||||||
|
|||||||
Reference in New Issue
Block a user