mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-27 19:04:05 +02:00
update
This commit is contained in:
@@ -42,14 +42,14 @@ RUN \
|
|||||||
# Change user to pi and create /home/pi
|
# Change user to pi and create /home/pi
|
||||||
echo "setting users" && \
|
echo "setting users" && \
|
||||||
groupmod -o -g 101 abc && usermod -o -u 101 abc && \
|
groupmod -o -g 101 abc && usermod -o -u 101 abc && \
|
||||||
groupadd --non-unique -g 1000 pi && \
|
groupadd --non-unique -g 1000 "$USER" && \
|
||||||
useradd --non-unique --uid 1000 --gid 1000 -m pi && \
|
useradd --non-unique --uid 1000 --gid 1000 -m "$USER" && \
|
||||||
\
|
\
|
||||||
# Ensure permissions
|
# Ensure permissions
|
||||||
echo "setting permissions" && \
|
echo "setting permissions" && \
|
||||||
echo "pi ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
echo "$USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
||||||
mkdir -p /home/pi/.config/matplotlib && \
|
mkdir -p /home/"$USER"/.config/matplotlib && \
|
||||||
chown -R 1000:1000 /home/pi && \
|
chown -R "$USER":"$USER" /home/"$USER" && \
|
||||||
\
|
\
|
||||||
# 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 && \
|
||||||
@@ -84,8 +84,8 @@ RUN \
|
|||||||
\
|
\
|
||||||
# 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/"$USER" /app && \
|
||||||
chown -R 1000:1000 /home/pi /app && \
|
chown -R "$USER":"$USER" /home/"$USER" /app && \
|
||||||
\
|
\
|
||||||
# Cleanup
|
# Cleanup
|
||||||
apt-get clean all && \
|
apt-get clean all && \
|
||||||
|
|||||||
@@ -91,7 +91,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": "0.13-2",
|
"version": "0.13-3",
|
||||||
"video": true,
|
"video": true,
|
||||||
"webui": "http://[HOST]:[PORT:80]"
|
"webui": "http://[HOST]:[PORT:80]"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user