diff --git a/ct/immich.sh b/ct/immich.sh index 759ee287c..84cb09f62 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -77,7 +77,7 @@ EOF BASE_DIR=${STAGING_DIR}/base-images SOURCE_DIR=${STAGING_DIR}/image-source cd /tmp - RELEASE="v3.3.0" + RELEASE="v3.3.1" if [[ -f ~/.intel_version ]]; then INTEL_SRC="https://raw.githubusercontent.com/immich-app/immich/${RELEASE}/machine-learning" curl -fsSL "${INTEL_SRC}/scripts/install-intel-runtime.sh" -o ./intel-runtime 2>/dev/null || @@ -114,6 +114,19 @@ EOF msg_ok "Image-processing libraries up to date" fi + # 3.3.0 reads geodata/countryInfo.txt; the update before #17823 saved it into app/ instead. + if [[ -d /opt/immich/geodata && ! -s /opt/immich/geodata/countryInfo.txt ]]; then + msg_info "Restoring geodata/countryInfo.txt" + if [[ -s /opt/immich/app/countryInfo.txt ]]; then + mv /opt/immich/app/countryInfo.txt /opt/immich/geodata/countryInfo.txt + else + curl_with_retry "https://download.geonames.org/export/dump/countryInfo.txt" /opt/immich/geodata/countryInfo.txt + fi + chown immich:immich /opt/immich/geodata/countryInfo.txt + systemctl restart immich-web + msg_ok "Restored geodata/countryInfo.txt" + fi + if check_for_gh_release "Immich" "immich-app/immich" "${RELEASE}" "each release is tested individually before the version is updated. Please do not open issues for this"; then msg_warn "The update takes 5-15 minutes, do not interrupt it" PREV_IMMICH="$(cat ~/.immich)" @@ -489,8 +502,7 @@ function compile_jpegli() { function compile_libheif() { SOURCE=${SOURCE_DIR}/libheif ensure_dependencies libaom-dev - LIBHEIF_REVISION="ac1cb05c39008f01525c991ff8b88f84ddf70fd2" - # : "${LIBHEIF_REVISION:=$(jq -cr '.revision' "$BASE_DIR"/server/sources/libheif.json)}" + LIBHEIF_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/libheif.json)" if [[ "${update:-}" ]] || [[ "$LIBHEIF_REVISION" != "$(grep 'libheif' ~/.immich_library_revisions | awk '{print $2}')" ]]; then msg_info "Recompiling libheif" [[ -d "$SOURCE" ]] && rm -rf "$SOURCE" diff --git a/install/immich-install.sh b/install/immich-install.sh index 35017ecd9..6a456168b 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -RELEASE="v3.3.0" +RELEASE="v3.3.1" if lscpu | grep -q 'GenuineIntel'; then echo "" echo "" @@ -268,8 +268,7 @@ msg_ok "(2/6) Compiled jpegli" msg_info "(3/6) Compiling libheif" SOURCE=${SOURCE_DIR}/libheif -LIBHEIF_REVISION="ac1cb05c39008f01525c991ff8b88f84ddf70fd2" -# : "${LIBHEIF_REVISION:=$(jq -cr '.revision' $BASE_DIR/server/sources/libheif.json)}" +LIBHEIF_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/libheif.json)" $STD git clone https://github.com/strukturag/libheif.git "$SOURCE" cd "$SOURCE" $STD git reset --hard "$LIBHEIF_REVISION"