This commit is contained in:
Alexandre
2024-04-27 11:32:41 +02:00
parent 399d192c80
commit 6ec665960f
2 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ RUN \
sed -i "1a /./newinstallermod.sh && rm /newinstallermod.sh" /newinstaller.sh && \ sed -i "1a /./newinstallermod.sh && rm /newinstallermod.sh" /newinstaller.sh && \
echo '#!/bin/bash' >> /newinstallermod.sh && \ echo '#!/bin/bash' >> /newinstallermod.sh && \
# Remove all instances of sudo from all other scripts # Remove all instances of sudo from all other scripts
echo 'for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do sed -i "s|sudo ||" "$file"; done' >> /newinstallermod.sh && \ #echo 'for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do sed -i "s|sudo ||" "$file"; done' >> /newinstallermod.sh && \
echo 'for file in $(grep -srl "my_dir" $HOME/BirdNET-Pi/scripts); do sed -i "s|\$my_dir|/config|" "$file"; done' >> /newinstallermod.sh && \ echo 'for file in $(grep -srl "my_dir" $HOME/BirdNET-Pi/scripts); do sed -i "s|\$my_dir|/config|" "$file"; done' >> /newinstallermod.sh && \
# Disable pulseaudio # Disable pulseaudio
echo 'for file in $(grep -srl "pulseaudio --start" $HOME/BirdNET-Pi/scripts); do sed -i "/pulseaudio --start/d" "$file"; done' >> /newinstallermod.sh && \ echo 'for file in $(grep -srl "pulseaudio --start" $HOME/BirdNET-Pi/scripts); do sed -i "/pulseaudio --start/d" "$file"; done' >> /newinstallermod.sh && \
@@ -77,7 +77,7 @@ RUN \
# Ensure chmod # Ensure chmod
sed -i "/git clone/a chown -R 1000:1000 $HOME" /newinstaller.sh && \ sed -i "/git clone/a chown -R 1000:1000 $HOME" /newinstaller.sh && \
# 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 && \
\ \
# Execute installer # Execute installer
sudo -u "$USER" /./newinstaller.sh && \ sudo -u "$USER" /./newinstaller.sh && \

View File

@@ -95,7 +95,7 @@
"slug": "birdnet-pi", "slug": "birdnet-pi",
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi",
"usb": true, "usb": true,
"version": "1.3", "version": "1.1",
"video": true, "video": true,
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]" "webui": "[PROTO:ssl]://[HOST]:[PORT:80]"
} }