From a5ce8d0d7782f28afb3123a82fbe902a749bd775 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 18 Jan 2025 20:31:56 -0700 Subject: [PATCH] Fix env variable exporting (#16043) --- docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run index 78b4ea547c..edc4d3ca76 100755 --- a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run +++ b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run @@ -44,12 +44,13 @@ function migrate_db_path() { function set_libva_version() { local ffmpeg_path=$(python3 docker/main/rootfs/usr/local/ffmpeg/get_ffmpeg_path.py) - export LIBAVFORMAT_VERSION_MAJOR=$($ffmpeg_path -version | grep -Po "libavformat\W+\K\d+") + LIBAVFORMAT_VERSION_MAJOR=$($ffmpeg_path -version | grep -Po "libavformat\W+\K\d+") } echo "[INFO] Preparing Frigate..." migrate_db_path set_libva_version +export LIBAVFORMAT_VERSION_MAJOR echo "[INFO] Starting Frigate..." cd /opt/frigate || echo "[ERROR] Failed to change working directory to /opt/frigate"