mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
s root
This commit is contained in:
@@ -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 && \
|
||||||
@@ -80,7 +80,7 @@ RUN \
|
|||||||
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 && \
|
/./newinstaller.sh && \
|
||||||
\
|
\
|
||||||
# Adapt for lsio usage of /app
|
# Adapt for lsio usage of /app
|
||||||
if [ -d /app ]; then rm -r /app; fi && \
|
if [ -d /app ]; then rm -r /app; fi && \
|
||||||
|
|||||||
@@ -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.1",
|
"version": "1.2",
|
||||||
"video": true,
|
"video": true,
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user