From 83ac42cbdc61cb8dd95d76a23a1581746a7d6aca Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 18 Jan 2025 21:33:13 -0700 Subject: [PATCH] Use correct path for script (#16045) --- docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 edc4d3ca76..e4a1b20e51 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 @@ -43,14 +43,13 @@ function migrate_db_path() { } function set_libva_version() { - local ffmpeg_path=$(python3 docker/main/rootfs/usr/local/ffmpeg/get_ffmpeg_path.py) - LIBAVFORMAT_VERSION_MAJOR=$($ffmpeg_path -version | grep -Po "libavformat\W+\K\d+") + local ffmpeg_path=$(python3 /usr/local/ffmpeg/get_ffmpeg_path.py) + export 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"