mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-19 11:08:11 +01:00
Update Dockerfile
This commit is contained in:
@@ -33,6 +33,7 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
|
||||
ARG CONFIGLOCATION="/config"
|
||||
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
|
||||
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
# hadolint ignore=DL3015,SC2016
|
||||
RUN \
|
||||
# Install dependencies
|
||||
@@ -100,8 +101,8 @@ RUN \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Update with my repo if more recent
|
||||
WORKDIR /home/pi
|
||||
RUN \
|
||||
cd "$HOME" && \
|
||||
git clone https://github.com/alexbelgium/BirdNET-Pi BirdNET-additions && \
|
||||
date1="$(cd BirdNET-Pi && git show -s --format=%ct HEAD | xargs -I{} date -d @{} +%Y-%m-%d)" && \
|
||||
timestamp1=$(date -d "$date1" +%s) && \
|
||||
@@ -110,8 +111,8 @@ RUN \
|
||||
if [ $timestamp2 -gt $timestamp1 ]; then \
|
||||
cp -Rf BirdNET-additions/* BirdNET-Pi/ && \
|
||||
rm -r BirdNET-additions && \
|
||||
sed -i "/find /d" BirdNET-Pi/scripts/*snippets* && \
|
||||
./BirdNET-Pi/scripts/*snippets*; fi
|
||||
sed -i "/find /d" BirdNET-Pi/scripts/update_birdnet_snippets.sh && \
|
||||
./BirdNET-Pi/scripts/update_birdnet_snippets.sh; fi
|
||||
|
||||
##################
|
||||
# 2 Modify Image #
|
||||
|
||||
Reference in New Issue
Block a user