mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-08 23:10:59 +02:00
Update Dockerfile
This commit is contained in:
@@ -34,8 +34,13 @@ RUN \
|
|||||||
#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 && \
|
||||||
chmod 777 /newinstaller.sh && \
|
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 && \
|
||||||
|
for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do sed -i "/sudo/c echo \"sudo replaced\"" "$file"; done && \
|
||||||
|
/./newinstaller.sh
|
||||||
# Correct for absence of sudo
|
# Correct for absence of sudo
|
||||||
sudo -E -u birdnet -s /bin/bash -c "/newinstaller.sh"
|
#sudo -E -u birdnet -s /bin/bash -c "/newinstaller.sh"
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# 2 Modify Image #
|
# 2 Modify Image #
|
||||||
|
|||||||
Reference in New Issue
Block a user