Fix env variable exporting (#16043)

This commit is contained in:
Nicolas Mowen 2025-01-18 20:31:56 -07:00 committed by GitHub
parent 0ee2e404da
commit a5ce8d0d77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"