mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Update Dockerfile
This commit is contained in:
@@ -47,10 +47,12 @@ RUN \
|
|||||||
# Remove all instances of sudo from the newinstaller
|
# Remove all instances of sudo from the newinstaller
|
||||||
sed -i -e "s|== 0|== 7|g" -e "s|sudo -n true|true|g" -e "s|sudo -K|true|g" /newinstaller.sh && \
|
sed -i -e "s|== 0|== 7|g" -e "s|sudo -n true|true|g" -e "s|sudo -K|true|g" /newinstaller.sh && \
|
||||||
# Remove all instances of sudo from all other scripts
|
# Remove all instances of sudo from all other scripts
|
||||||
sed -i '1a for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do \sed -i "s|sudo ||" "$file"; done' /newinstaller.sh && \
|
sed -i '1a for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do sed -i "s|sudo ||" "$file"; done' /newinstaller.sh && \
|
||||||
sed -i '1a for file in $(grep -srl "my_dir" $HOME/BirdNET-Pi/scripts); do \sed -i "s|\$my_dir|/config|" "$file"; done' /newinstaller.sh && \
|
sed -i '1a for file in $(grep -srl "my_dir" $HOME/BirdNET-Pi/scripts); do sed -i "s|\$my_dir|/config|" "$file"; done' /newinstaller.sh && \
|
||||||
|
sed -i '1a for file in $(grep -srl "install_services.sh" $HOME/BirdNET-Pi/scripts); do sed -i "/install_services.sh/c ./install_services.sh" "$file"; done' /newinstaller.sh && \
|
||||||
\
|
\
|
||||||
/./newinstaller.sh && \
|
/./newinstaller.sh && \
|
||||||
|
|
||||||
\
|
\
|
||||||
# Adapt for lsio
|
# Adapt for lsio
|
||||||
if [ -d /app ]; then rm -r /app; fi && \
|
if [ -d /app ]; then rm -r /app; fi && \
|
||||||
|
|||||||
Reference in New Issue
Block a user