From 44de5c4080c7c60abab94d08b11a76f9328d1473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 2 Feb 2024 13:33:52 +0100 Subject: [PATCH] Fix upgrade again --- scripts/_common.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 0a58cca..575d701 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -37,9 +37,15 @@ install_jellyfin_packages() { # Install the packages ynh_package_install \ "$tempdir/jellyfin-web.deb" \ - "$tempdir/jellyfin-ffmpeg6.deb" \ "$tempdir/jellyfin-server.deb" + # We need to workaround yunohoost passing --no-remove to replace jellyfin-ffmpeg5... + if ynh_package_is_installed "jellyfin-ffmpeg5"; then + ynh_package_remove "jellyfin-ffmpeg5" + fi + ynh_package_install \ + "$tempdir/jellyfin-ffmpeg6.deb" + # The doc says it should be called only once, # but the code says multiple calls are supported. # Also, they're already installed so that should be quasi instantaneous.