1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin_ynh.git synced 2024-09-03 19:26:29 +02:00

Fix upgrade again

This commit is contained in:
Salamandar 2024-02-02 13:33:52 +01:00
parent 4a04c7a6cf
commit 44de5c4080

View file

@ -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.