mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-01 19:00:33 +02:00
update
This commit is contained in:
@@ -31,7 +31,14 @@ ENV DEBIAN_FRONTEND="noninteractive" \
|
|||||||
RUN \
|
RUN \
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
apt-get update -y && apt-get install gcc python3-dev git jq sudo -y && \
|
apt-get update -y && apt-get install gcc python3-dev git jq sudo -y && \
|
||||||
mkdir -p /home/pi && \
|
\
|
||||||
|
# Change user to pi and create /home/pi
|
||||||
|
groupmod -g 101 abc && usermod -u 101 abc && \
|
||||||
|
groupadd --gid 1000 pi && useradd --uid 1000 --gid 1000 -m && \
|
||||||
|
\
|
||||||
|
# Ensure permissions
|
||||||
|
chown -R pi:pi /home/pi && \
|
||||||
|
echo "pi ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
||||||
\
|
\
|
||||||
# Download installer
|
# Download installer
|
||||||
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 && \
|
||||||
@@ -54,14 +61,6 @@ RUN \
|
|||||||
# Execute installer
|
# Execute installer
|
||||||
/./newinstaller.sh && \
|
/./newinstaller.sh && \
|
||||||
\
|
\
|
||||||
# Change user to pi
|
|
||||||
groupmod -g 100 abc && usermod -u 100 abc && \
|
|
||||||
groupadd --gid 1000 pi && useradd --uid 1000 --gid 1000 && \
|
|
||||||
\
|
|
||||||
# Ensure permissions
|
|
||||||
chown -R pi:pi /home/pi && \
|
|
||||||
echo "pi ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
|
||||||
\
|
|
||||||
# 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 && \
|
||||||
ln -s /home/pi /app && \
|
ln -s /home/pi /app && \
|
||||||
|
|||||||
@@ -90,5 +90,5 @@
|
|||||||
},
|
},
|
||||||
"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",
|
||||||
"version": "0.7"
|
"version": "0.8"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user