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