From cedc440446bd848cd2cc5c89bd602f47c4e3af74 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 23 Oct 2026 15:27:06 +0200 Subject: [PATCH] immich: install mise from its GitHub release, retry jellyfin-ffmpeg, default the ML prompt (#18099) The mise apt repository keeps one version and caches its index for a day; with near-daily mise releases the index points at a deleted deb and the install ends with 100 (18 a week). The binary comes from the release instead, on new containers and on updates that have none yet. jellyfin-ffmpeg7 failed on mirror hiccups; it goes through the retrying installer. The machine-learning prompt ended the install without a TTY. --- ct/immich.sh | 10 ++++------ install/immich-install.sh | 13 +++++-------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/ct/immich.sh b/ct/immich.sh index 09d8651a4..c61742e9b 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -65,12 +65,10 @@ EOF msg_ok "Installed/upgraded Testing repo packages" fi - if [[ ! -f /etc/apt/sources.list.d/mise.list ]]; then - msg_info "Installing Mise" - curl -fSs https://mise.jdx.dev/gpg-key.pub | tee /etc/apt/keyrings/mise-archive-keyring.pub 1>/dev/null - echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.pub arch=$(arch_resolve)] https://mise.jdx.dev/deb stable main" >/etc/apt/sources.list.d/mise.list - ensure_dependencies mise - msg_ok "Installed Mise" + if ! command -v mise >/dev/null 2>&1; then + MISE_ARCH="x64" + [[ "$(arch_resolve)" == "arm64" ]] && MISE_ARCH="arm64" + fetch_and_deploy_gh_release "mise" "jdx/mise" "singlefile" "latest" "/usr/local/bin" "mise-v*-linux-${MISE_ARCH}" fi STAGING_DIR=/opt/staging diff --git a/install/immich-install.sh b/install/immich-install.sh index 2073dee96..416da545d 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -25,7 +25,7 @@ if lscpu | grep -q 'GenuineIntel'; then echo " 2) **NEW** Intel OpenVINO CPU or iGPU" echo "" - read -r -p "${TAB3}Select machine-learning type [1]: " ML_TYPE + read -r -p "${TAB3}Select machine-learning type [1]: " ML_TYPE || true ML_TYPE="${ML_TYPE:-1}" if [[ "$ML_TYPE" == "2" ]]; then touch ~/.openvino @@ -110,7 +110,7 @@ setup_deb822_repo \ "https://repo.jellyfin.org/jellyfin_team.gpg.key" \ "https://repo.jellyfin.org/debian" \ "$(get_os_info codename)" -$STD apt install -y jellyfin-ffmpeg7 +install_packages_with_retry jellyfin-ffmpeg7 ln -sf /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg ln -sf /usr/lib/jellyfin-ffmpeg/ffprobe /usr/bin/ffprobe @@ -124,12 +124,9 @@ if [[ "$CTTYPE" == "0" && -d /dev/dri ]]; then fi msg_ok "Dependencies Installed" -msg_info "Installing Mise" -curl -fSs https://mise.jdx.dev/gpg-key.pub | tee /etc/apt/keyrings/mise-archive-keyring.pub 1>/dev/null -echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.pub arch=$(arch_resolve)] https://mise.jdx.dev/deb stable main" >/etc/apt/sources.list.d/mise.list -apt_update_safe -$STD apt install -y mise -msg_ok "Installed Mise" +MISE_ARCH="x64" +[[ "$(arch_resolve)" == "arm64" ]] && MISE_ARCH="arm64" +fetch_and_deploy_gh_release "mise" "jdx/mise" "singlefile" "latest" "/usr/local/bin" "mise-v*-linux-${MISE_ARCH}" msg_info "Configuring Debian Testing Repo" if [[ -f /etc/apt/sources.list.d/debian.sources ]]; then