mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-05 16:45:00 +02:00
Sonarr v4 configures FFMpegCore to look for ffprobe exclusively in its own binary directory (/app/sonarr/bin/) via AppDomain.CurrentDomain.BaseDirectory. The addon already installs ffmpeg via apt (providing /usr/bin/ffprobe), but Sonarr never looks there. This init script creates a symlink so Sonarr can find the system-installed ffprobe. Fixes #2451 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
13 lines
504 B
Bash
Executable File
13 lines
504 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
# Sonarr v4 looks for ffprobe in its own binary directory (/app/sonarr/bin/)
|
|
# via GlobalFFOptions.Configure(options => options.BinaryFolder = AppDomain.CurrentDomain.BaseDirectory)
|
|
# Symlink the system-installed ffprobe there so Sonarr can find a working copy
|
|
|
|
if [ -f /usr/bin/ffprobe ] && [ -d /app/sonarr/bin ]; then
|
|
ln -sf /usr/bin/ffprobe /app/sonarr/bin/ffprobe
|
|
echo "Symlinked /usr/bin/ffprobe to /app/sonarr/bin/ffprobe"
|
|
fi
|