From 5313f00edb2c731a755e7a92d3b057a8d6436b67 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Jun 2025 09:21:36 -0400 Subject: [PATCH] Immich: make changes to automatically enable QuickSync (#5560) - In previous versions of the script, transcoding was enabled only if you chose to enable OpenVINO - Recently that was decoupled, but a couple of things were overlooked - Now, even if you elect to not enable OpenVINO, the necessary permission and group changes will be made to the immich user (or the root user if choosing a privileged LXC) regardless. --- install/immich-install.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/install/immich-install.sh b/install/immich-install.sh index 86958e0cf..5e31af0d2 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -84,6 +84,13 @@ $STD apt-get update $STD apt-get install -y jellyfin-ffmpeg7 ln -s /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg ln -s /usr/lib/jellyfin-ffmpeg/ffprobe /usr/bin/ffprobe +if [[ "$CTTYPE" == "0" ]]; then + chgrp video /dev/dri + chmod 755 /dev/dri + chmod 660 /dev/dri/* + $STD adduser "$(id -u -n)" video + $STD adduser "$(id -u -n)" render +fi msg_ok "Dependencies Installed" read -r -p "Install OpenVINO dependencies for Intel HW-accelerated machine-learning? y/N " prompt @@ -100,13 +107,6 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then $STD popd rm -rf "$tmp_dir" dpkg -l | grep "intel-opencl-icd" | awk '{print $3}' >~/.intel_version - if [[ "$CTTYPE" == "0" ]]; then - chgrp video /dev/dri - chmod 755 /dev/dri - chmod 660 /dev/dri/* - $STD adduser "$(id -u -n)" video - $STD adduser "$(id -u -n)" render - fi msg_ok "Installed OpenVINO dependencies" fi @@ -360,9 +360,8 @@ msg_ok "Installed ${APPLICATION}" msg_info "Creating user, env file, scripts & services" $STD useradd -U -s /usr/sbin/nologin -r -M -d "$INSTALL_DIR" immich -if [[ -f ~/.openvino ]]; then - usermod -aG video,render immich -fi +usermod -aG video,render immich + cat <"${INSTALL_DIR}"/.env TZ=$(cat /etc/timezone) IMMICH_VERSION=release