Skip to content

Commit 5313f00

Browse files
authored
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.
1 parent f83bfd1 commit 5313f00

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

install/immich-install.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ $STD apt-get update
8484
$STD apt-get install -y jellyfin-ffmpeg7
8585
ln -s /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg
8686
ln -s /usr/lib/jellyfin-ffmpeg/ffprobe /usr/bin/ffprobe
87+
if [[ "$CTTYPE" == "0" ]]; then
88+
chgrp video /dev/dri
89+
chmod 755 /dev/dri
90+
chmod 660 /dev/dri/*
91+
$STD adduser "$(id -u -n)" video
92+
$STD adduser "$(id -u -n)" render
93+
fi
8794
msg_ok "Dependencies Installed"
8895

8996
read -r -p "Install OpenVINO dependencies for Intel HW-accelerated machine-learning? y/N " prompt
@@ -100,13 +107,6 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
100107
$STD popd
101108
rm -rf "$tmp_dir"
102109
dpkg -l | grep "intel-opencl-icd" | awk '{print $3}' >~/.intel_version
103-
if [[ "$CTTYPE" == "0" ]]; then
104-
chgrp video /dev/dri
105-
chmod 755 /dev/dri
106-
chmod 660 /dev/dri/*
107-
$STD adduser "$(id -u -n)" video
108-
$STD adduser "$(id -u -n)" render
109-
fi
110110
msg_ok "Installed OpenVINO dependencies"
111111
fi
112112

@@ -360,9 +360,8 @@ msg_ok "Installed ${APPLICATION}"
360360

361361
msg_info "Creating user, env file, scripts & services"
362362
$STD useradd -U -s /usr/sbin/nologin -r -M -d "$INSTALL_DIR" immich
363-
if [[ -f ~/.openvino ]]; then
364-
usermod -aG video,render immich
365-
fi
363+
usermod -aG video,render immich
364+
366365
cat <<EOF >"${INSTALL_DIR}"/.env
367366
TZ=$(cat /etc/timezone)
368367
IMMICH_VERSION=release

0 commit comments

Comments
 (0)