Use correct path for script (#16045)

This commit is contained in:
Nicolas Mowen 2025-01-18 21:33:13 -07:00 committed by GitHub
parent a5ce8d0d77
commit 83ac42cbdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,14 +43,13 @@ function migrate_db_path() {
} }
function set_libva_version() { function set_libva_version() {
local ffmpeg_path=$(python3 docker/main/rootfs/usr/local/ffmpeg/get_ffmpeg_path.py) local ffmpeg_path=$(python3 /usr/local/ffmpeg/get_ffmpeg_path.py)
LIBAVFORMAT_VERSION_MAJOR=$($ffmpeg_path -version | grep -Po "libavformat\W+\K\d+") export LIBAVFORMAT_VERSION_MAJOR=$($ffmpeg_path -version | grep -Po "libavformat\W+\K\d+")
} }
echo "[INFO] Preparing Frigate..." echo "[INFO] Preparing Frigate..."
migrate_db_path migrate_db_path
set_libva_version set_libva_version
export LIBAVFORMAT_VERSION_MAJOR
echo "[INFO] Starting Frigate..." echo "[INFO] Starting Frigate..."
cd /opt/frigate || echo "[ERROR] Failed to change working directory to /opt/frigate" cd /opt/frigate || echo "[ERROR] Failed to change working directory to /opt/frigate"