Skip to content

Commit b52cba8

Browse files
authored
Immich: test fix for 5299 (#5300)
1 parent ac203f4 commit b52cba8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ct/immich.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ function update_script() {
226226
mv "$APP-$RELEASE"/ "$SRC_DIR"
227227
mkdir -p "$ML_DIR"
228228
cd "$SRC_DIR"/server
229+
if [[ "$RELEASE" == "1.135.1" ]]; then
230+
rm ./src/schema/migrations/1750323941566-UnsetPrewarmDimParameter.ts
231+
fi
229232
$STD npm install -g node-gyp node-pre-gyp
230233
$STD npm ci
231234
$STD npm run build

install/immich-install.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,21 +273,19 @@ rm -rf "$SOURCE"/build
273273
} >~/.immich_library_revisions
274274
msg_ok "Custom Photo-processing Library Compiled"
275275

276-
msg_info "Installing ${APPLICATION} (more patience please)"
277-
tmp_file=$(mktemp)
278-
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) }')
279-
curl -fsSL "https://github.com/immich-app/immich/archive/refs/tags/v${RELEASE}.zip" -o "$tmp_file"
280-
unzip -q "$tmp_file"
281276
INSTALL_DIR="/opt/${APPLICATION}"
282277
UPLOAD_DIR="${INSTALL_DIR}/upload"
283278
SRC_DIR="${INSTALL_DIR}/source"
284279
APP_DIR="${INSTALL_DIR}/app"
285280
ML_DIR="${APP_DIR}/machine-learning"
286281
GEO_DIR="${INSTALL_DIR}/geodata"
287282
mkdir -p "$INSTALL_DIR"
288-
mv "$APPLICATION-$RELEASE"/ "$SRC_DIR"
289283
mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${ML_DIR}","${INSTALL_DIR}"/cache}
290284

285+
fetch_and_deploy_gh_release "immich" "immich-app/immich" "tarball" "v1.135.0" "$SRC_DIR"
286+
287+
msg_info "Installing ${APPLICATION} (more patience please)"
288+
291289
cd "$SRC_DIR"/server
292290
$STD npm install -g node-gyp node-pre-gyp
293291
$STD npm ci
@@ -358,7 +356,6 @@ msg_ok "Installed GeoNames data"
358356

359357
mkdir -p /var/log/immich
360358
touch /var/log/immich/{web.log,ml.log}
361-
echo "$RELEASE" >/opt/"${APPLICATION}"_version.txt
362359
msg_ok "Installed ${APPLICATION}"
363360

364361
msg_info "Creating user, env file, scripts & services"

0 commit comments

Comments
 (0)