From 865dc62eeaf95072ad860170f592e07b5cee7b8b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 23 Jun 2026 20:38:33 +0200 Subject: [PATCH] Update 01-structure.sh --- birdnet-go/rootfs/etc/cont-init.d/01-structure.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/birdnet-go/rootfs/etc/cont-init.d/01-structure.sh b/birdnet-go/rootfs/etc/cont-init.d/01-structure.sh index a8d1e13ed4..5b5d49e310 100755 --- a/birdnet-go/rootfs/etc/cont-init.d/01-structure.sh +++ b/birdnet-go/rootfs/etc/cont-init.d/01-structure.sh @@ -157,5 +157,6 @@ yq -i -y '.logging.file_output.compress //= true' "$CONFIG_LOCATION" LOG_DIR="/config/logs" if [ -d "$LOG_DIR" ]; then bashio::log.info "Trimming log files older than ${LOG_MAX_AGE_DAYS} days in ${LOG_DIR}" + ln -sf "$LOG_DIR" /logs find "$LOG_DIR" -type f -name "*.log*" -mtime +"$LOG_MAX_AGE_DAYS" -delete 2>/dev/null || true fi