@@ -273,21 +273,19 @@ rm -rf "$SOURCE"/build
273273} > ~/.immich_library_revisions
274274msg_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 "
281276INSTALL_DIR=" /opt/${APPLICATION} "
282277UPLOAD_DIR=" ${INSTALL_DIR} /upload"
283278SRC_DIR=" ${INSTALL_DIR} /source"
284279APP_DIR=" ${INSTALL_DIR} /app"
285280ML_DIR=" ${APP_DIR} /machine-learning"
286281GEO_DIR=" ${INSTALL_DIR} /geodata"
287282mkdir -p " $INSTALL_DIR "
288- mv " $APPLICATION -$RELEASE " / " $SRC_DIR "
289283mkdir -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+
291289cd " $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
359357mkdir -p /var/log/immich
360358touch /var/log/immich/{web.log,ml.log}
361- echo " $RELEASE " > /opt/" ${APPLICATION} " _version.txt
362359msg_ok " Installed ${APPLICATION} "
363360
364361msg_info " Creating user, env file, scripts & services"
0 commit comments