mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-05 20:58:16 +01:00
Fix ffprobe not found by Sonarr: symlink system ffprobe to /app/sonarr/bin/
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>
This commit is contained in:
12
sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh
Executable file
12
sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user