mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 09:28:20 +01:00
Update Dockerfile
This commit is contained in:
@@ -101,18 +101,18 @@ RUN \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Update with my repo if more recent
|
||||
WORKDIR /home/pi
|
||||
RUN \
|
||||
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) && \
|
||||
date2=$(cd BirdNET-additions && git show -s --format=%ct HEAD | xargs -I{} date -d @{} +%Y-%m-%d) && \
|
||||
timestamp2=$(date -d "$date2" +%s) && \
|
||||
if [ $timestamp2 -gt $timestamp1 ]; then \
|
||||
cp -Rf BirdNET-additions/* BirdNET-Pi/ && \
|
||||
rm -r BirdNET-additions && \
|
||||
sed -i "/find /d" BirdNET-Pi/scripts/update_birdnet_snippets.sh && \
|
||||
./BirdNET-Pi/scripts/update_birdnet_snippets.sh; fi
|
||||
#WORKDIR /home/pi
|
||||
#RUN \
|
||||
# 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) && \
|
||||
# date2=$(cd BirdNET-additions && git show -s --format=%ct HEAD | xargs -I{} date -d @{} +%Y-%m-%d) && \
|
||||
# timestamp2=$(date -d "$date2" +%s) && \
|
||||
# if [ $timestamp2 -gt $timestamp1 ]; then \
|
||||
# cp -Rf BirdNET-additions/* BirdNET-Pi/ && \
|
||||
# rm -r BirdNET-additions && \
|
||||
# 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