Skip to content

Commit

Permalink
Use correct path for script (#16045)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Jan 19, 2025
1 parent a5ce8d0 commit 83ac42c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 83ac42c

Please sign in to comment.