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