From b52cba817f43c75c32988c51f0047aae1b1c6a1c Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 20 Jun 2025 01:47:46 -0400 Subject: [PATCH] Immich: test fix for 5299 (#5300) --- ct/immich.sh | 3 +++ install/immich-install.sh | 11 ++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ct/immich.sh b/ct/immich.sh index 7d421ed9a..3622199f2 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -226,6 +226,9 @@ function update_script() { mv "$APP-$RELEASE"/ "$SRC_DIR" mkdir -p "$ML_DIR" cd "$SRC_DIR"/server + if [[ "$RELEASE" == "1.135.1" ]]; then + rm ./src/schema/migrations/1750323941566-UnsetPrewarmDimParameter.ts + fi $STD npm install -g node-gyp node-pre-gyp $STD npm ci $STD npm run build diff --git a/install/immich-install.sh b/install/immich-install.sh index ccc8dd648..b8cfce932 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -273,11 +273,6 @@ rm -rf "$SOURCE"/build } >~/.immich_library_revisions msg_ok "Custom Photo-processing Library Compiled" -msg_info "Installing ${APPLICATION} (more patience please)" -tmp_file=$(mktemp) -RELEASE=$(curl -fsSL https://api.github.com/repos/immich-app/immich/releases?per_page=1 | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/immich-app/immich/archive/refs/tags/v${RELEASE}.zip" -o "$tmp_file" -unzip -q "$tmp_file" INSTALL_DIR="/opt/${APPLICATION}" UPLOAD_DIR="${INSTALL_DIR}/upload" SRC_DIR="${INSTALL_DIR}/source" @@ -285,9 +280,12 @@ APP_DIR="${INSTALL_DIR}/app" ML_DIR="${APP_DIR}/machine-learning" GEO_DIR="${INSTALL_DIR}/geodata" mkdir -p "$INSTALL_DIR" -mv "$APPLICATION-$RELEASE"/ "$SRC_DIR" mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${ML_DIR}","${INSTALL_DIR}"/cache} +fetch_and_deploy_gh_release "immich" "immich-app/immich" "tarball" "v1.135.0" "$SRC_DIR" + +msg_info "Installing ${APPLICATION} (more patience please)" + cd "$SRC_DIR"/server $STD npm install -g node-gyp node-pre-gyp $STD npm ci @@ -358,7 +356,6 @@ msg_ok "Installed GeoNames data" mkdir -p /var/log/immich touch /var/log/immich/{web.log,ml.log} -echo "$RELEASE" >/opt/"${APPLICATION}"_version.txt msg_ok "Installed ${APPLICATION}" msg_info "Creating user, env file, scripts & services"