Skip to content

Commit

Permalink
Fix env variable exporting (#16043)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Jan 19, 2025
1 parent 0ee2e40 commit a5ce8d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a5ce8d0

Please sign in to comment.