From 786e01d4a1b6c37731fd7062c7df536b9da36028 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sat, 27 Apr 2024 11:40:38 +0200 Subject: [PATCH] update --- zzz_draft_birdnet-pi/Dockerfile | 18 +++++++++--------- zzz_draft_birdnet-pi/config.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/zzz_draft_birdnet-pi/Dockerfile b/zzz_draft_birdnet-pi/Dockerfile index 5f5193771..ddd094551 100644 --- a/zzz_draft_birdnet-pi/Dockerfile +++ b/zzz_draft_birdnet-pi/Dockerfile @@ -27,7 +27,7 @@ ENV DEBIAN_FRONTEND="noninteractive" \ XDG_RUNTIME_DIR="/run/user/1000" \ PYTHON_VIRTUAL_ENV="/home/pi/BirdNET-Pi/birdnet/bin/python3" -# hadolint ignore=DL3015,SC2016,DL3004 +# hadolint ignore=DL3015,SC2016 RUN \ # Install dependencies echo "Install dependencies" && \ @@ -42,14 +42,14 @@ RUN \ # Change user to pi and create /home/pi echo "setting users" && \ groupmod -o -g 101 abc && usermod -o -u 101 abc && \ - groupadd --non-unique -g 1000 "$USER" && \ - useradd --non-unique --uid 1000 --gid 1000 -m "$USER" && \ + groupadd --non-unique -g 1000 pi && \ + useradd --non-unique --uid 1000 --gid 1000 -m pi && \ \ # Ensure permissions echo "setting permissions" && \ - echo "$USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ - mkdir -p "$HOME"/.config/matplotlib && \ - chown -R 1000:1000 "$HOME" && \ + echo "pi ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ + mkdir -p /home/pi/.config/matplotlib && \ + chown -R 1000:1000 /home/pi && \ \ # Download installer curl -f -L -s -S "https://raw.githubusercontent.com/Nachtzuster/BirdNET-Pi/main/newinstaller.sh" -o /newinstaller.sh && \ @@ -66,7 +66,7 @@ RUN \ # Disable pulseaudio echo 'for file in $(grep -srl "pulseaudio --start" $HOME/BirdNET-Pi/scripts); do sed -i "/pulseaudio --start/d" "$file"; done' >> /newinstallermod.sh && \ # Set permission - chmod 777 /newinstallermod.sh && \ + chmod +x /newinstallermod.sh && \ \ # Modify installer ################## @@ -84,8 +84,8 @@ RUN \ \ # Adapt for lsio usage of /app if [ -d /app ]; then rm -r /app; fi && \ - ln -s "$HOME" /app && \ - chown -R 1000:1000 "$HOME" /app + ln -s /home/pi /app && \ + chown -R 1000:1000 /home/pi /app ################## # 2 Modify Image # diff --git a/zzz_draft_birdnet-pi/config.json b/zzz_draft_birdnet-pi/config.json index e5a1ec2d0..916dc66c9 100644 --- a/zzz_draft_birdnet-pi/config.json +++ b/zzz_draft_birdnet-pi/config.json @@ -95,7 +95,7 @@ "slug": "birdnet-pi", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi", "usb": true, - "version": "1.2", + "version": "1.3", "video": true, "webui": "[PROTO:ssl]://[HOST]:[PORT:80]" }