Update Dockerfile

This commit is contained in:
Alexandre
2024-04-23 18:08:38 +02:00
committed by GitHub
parent 7d32677d5d
commit 51a9277fdd

View File

@@ -36,9 +36,10 @@ RUN \
chmod 777 /newinstaller.sh && \
sed -i "s|sudo apt update|echo \"yes\"|g" /newinstaller.sh && \
sed -i "s|apt |apt-get |g" /newinstaller.sh && \
sed -i "s|sudo -n true|true|g" /newinstaller.sh && \
sed -i "s|sudo|#sudo|g" /newinstaller.sh && \
cat /newinstaller.sh
#sed -i "s|sudo -n true|true|g" /newinstaller.sh && \
#sed -i "s|sudo|#sudo|g" /newinstaller.sh && \
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."; \