mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Immich: Updates for v2.2.0 (#8770)
* replace for-loop with curl native for multiple downloads * add ccache dependency for OCR feature * Update NodeJS to 24 * bump pinned version to 2.2.0
This commit is contained in:
		@@ -37,7 +37,7 @@ function update_script() {
 | 
			
		||||
 | 
			
		||||
  setup_uv
 | 
			
		||||
  PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
 | 
			
		||||
  NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
 | 
			
		||||
  NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
 | 
			
		||||
 | 
			
		||||
  if [[ ! -f /etc/apt/preferences.d/preferences ]]; then
 | 
			
		||||
    msg_info "Adding Debian Testing repo"
 | 
			
		||||
@@ -93,7 +93,7 @@ EOF
 | 
			
		||||
    msg_ok "Image-processing libraries up to date"
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  RELEASE="2.1.0"
 | 
			
		||||
  RELEASE="2.2.0"
 | 
			
		||||
  if check_for_gh_release "immich" "immich-app/immich" "${RELEASE}"; then
 | 
			
		||||
    msg_info "Stopping Services"
 | 
			
		||||
    systemctl stop immich-web
 | 
			
		||||
@@ -113,6 +113,9 @@ EOF
 | 
			
		||||
      rm ./vchord.deb
 | 
			
		||||
      msg_ok "Upgraded VectorChord to v${VCHORD_RELEASE}"
 | 
			
		||||
    fi
 | 
			
		||||
    if ! dpkg -l | grep -q ccache; then
 | 
			
		||||
      $STD apt-get install -yqq ccache
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    INSTALL_DIR="/opt/${APP}"
 | 
			
		||||
    UPLOAD_DIR="$(sed -n '/^IMMICH_MEDIA_LOCATION/s/[^=]*=//p' /opt/immich/.env)"
 | 
			
		||||
 
 | 
			
		||||
@@ -64,7 +64,8 @@ $STD apt-get install --no-install-recommends -y \
 | 
			
		||||
  libdav1d-dev \
 | 
			
		||||
  libhwy-dev \
 | 
			
		||||
  libwebp-dev \
 | 
			
		||||
  libaom-dev
 | 
			
		||||
  libaom-dev \
 | 
			
		||||
  ccache
 | 
			
		||||
curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | gpg --dearmor -o /etc/apt/keyrings/jellyfin.gpg
 | 
			
		||||
DPKG_ARCHITECTURE="$(dpkg --print-architecture)"
 | 
			
		||||
export DPKG_ARCHITECTURE
 | 
			
		||||
@@ -126,7 +127,7 @@ $STD apt-get install -t testing --no-install-recommends -yqq libmimalloc3
 | 
			
		||||
msg_ok "Installed libmimalloc3"
 | 
			
		||||
 | 
			
		||||
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
 | 
			
		||||
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
 | 
			
		||||
NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
 | 
			
		||||
PG_VERSION="16" PG_MODULES="pgvector" setup_postgresql
 | 
			
		||||
 | 
			
		||||
msg_info "Setting up Postgresql Database"
 | 
			
		||||
@@ -287,7 +288,7 @@ GEO_DIR="${INSTALL_DIR}/geodata"
 | 
			
		||||
mkdir -p "$INSTALL_DIR"
 | 
			
		||||
mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${INSTALL_DIR}"/cache}
 | 
			
		||||
 | 
			
		||||
fetch_and_deploy_gh_release "immich" "immich-app/immich" "tarball" "v2.1.0" "$SRC_DIR"
 | 
			
		||||
fetch_and_deploy_gh_release "immich" "immich-app/immich" "tarball" "v2.2.0" "$SRC_DIR"
 | 
			
		||||
 | 
			
		||||
msg_info "Installing ${APPLICATION} (patience)"
 | 
			
		||||
 | 
			
		||||
@@ -351,15 +352,10 @@ ln -s "$UPLOAD_DIR" "$ML_DIR"/upload
 | 
			
		||||
 | 
			
		||||
msg_info "Installing GeoNames data"
 | 
			
		||||
cd "$GEO_DIR"
 | 
			
		||||
URL_LIST=(
 | 
			
		||||
  https://download.geonames.org/export/dump/admin1CodesASCII.txt
 | 
			
		||||
  https://download.geonames.org/export/dump/admin2Codes.txt
 | 
			
		||||
  https://download.geonames.org/export/dump/cities500.zip
 | 
			
		||||
  https://raw.githubusercontent.com/nvkelso/natural-earth-vector/v5.1.2/geojson/ne_10m_admin_0_countries.geojson
 | 
			
		||||
)
 | 
			
		||||
for geo in "${URL_LIST[@]}"; do
 | 
			
		||||
  curl -fsSLO "$geo"
 | 
			
		||||
done
 | 
			
		||||
curl -fsSLZ -O "https://download.geonames.org/export/dump/admin1CodesASCII.txt" \
 | 
			
		||||
  -O "https://download.geonames.org/export/dump/admin2Codes.txt" \
 | 
			
		||||
  -O "https://download.geonames.org/export/dump/cities500.zip" \
 | 
			
		||||
  -O "https://raw.githubusercontent.com/nvkelso/natural-earth-vector/v5.1.2/geojson/ne_10m_admin_0_countries.geojson"
 | 
			
		||||
unzip -q cities500.zip
 | 
			
		||||
date --iso-8601=seconds | tr -d "\n" >geodata-date.txt
 | 
			
		||||
rm cities500.zip
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user