|
92 | 92 | done |
93 | 93 | msg_ok "Image-processing libraries up to date" |
94 | 94 | fi |
95 | | - RELEASE="2.0.1" |
| 95 | + |
| 96 | + RELEASE="2.1.1" |
96 | 97 | if check_for_gh_release "immich" "immich-app/immich" "${RELEASE}"; then |
97 | 98 | msg_info "Stopping Services" |
98 | 99 | systemctl stop immich-web |
99 | 100 | systemctl stop immich-ml |
100 | | - msg_ok "Stopped Service" |
101 | | - INSTALL_DIR="/opt/${APP}" |
102 | | - UPLOAD_DIR="$(sed -n '/^IMMICH_MEDIA_LOCATION/s/[^=]*=//p' /opt/immich/.env)" |
103 | | - SRC_DIR="${INSTALL_DIR}/source" |
104 | | - APP_DIR="${INSTALL_DIR}/app" |
105 | | - ML_DIR="${APP_DIR}/machine-learning" |
106 | | - GEO_DIR="${INSTALL_DIR}/geodata" |
107 | | - VCHORD_RELEASE="0.4.3" |
108 | | - # VCHORD_RELEASE="$(curl -fsSL https://api.github.com/repos/tensorchord/vectorchord/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')" |
109 | | - |
| 101 | + msg_ok "Stopped Services" |
| 102 | + VCHORD_RELEASE="0.5.3" |
110 | 103 | if [[ ! -f ~/.vchord_version ]] || [[ "$VCHORD_RELEASE" != "$(cat ~/.vchord_version)" ]]; then |
111 | | - msg_info "Updating VectorChord" |
| 104 | + msg_info "Upgrading VectorChord" |
112 | 105 | curl -fsSL "https://github.com/tensorchord/vectorchord/releases/download/${VCHORD_RELEASE}/postgresql-16-vchord_${VCHORD_RELEASE}-1_amd64.deb" -o vchord.deb |
113 | 106 | $STD apt install -y ./vchord.deb |
114 | | - $STD sudo -u postgres psql -d immich -c "ALTER EXTENSION vchord UPDATE;" |
115 | 107 | systemctl restart postgresql |
| 108 | + $STD sudo -u postgres psql -d immich -c "ALTER EXTENSION vector UPDATE;" |
| 109 | + $STD sudo -u postgres psql -d immich -c "ALTER EXTENSION vchord UPDATE;" |
| 110 | + $STD sudo -u postgres psql -d immich -c "REINDEX INDEX face_index;" |
| 111 | + $STD sudo -u postgres psql -d immich -c "REINDEX INDEX clip_index;" |
116 | 112 | echo "$VCHORD_RELEASE" >~/.vchord_version |
117 | 113 | rm ./vchord.deb |
118 | | - msg_ok "Updated VectorChord to v${VCHORD_RELEASE}" |
| 114 | + msg_ok "Upgraded VectorChord to v${VCHORD_RELEASE}" |
119 | 115 | fi |
120 | 116 |
|
| 117 | + INSTALL_DIR="/opt/${APP}" |
| 118 | + UPLOAD_DIR="$(sed -n '/^IMMICH_MEDIA_LOCATION/s/[^=]*=//p' /opt/immich/.env)" |
| 119 | + SRC_DIR="${INSTALL_DIR}/source" |
| 120 | + APP_DIR="${INSTALL_DIR}/app" |
| 121 | + ML_DIR="${APP_DIR}/machine-learning" |
| 122 | + GEO_DIR="${INSTALL_DIR}/geodata" |
| 123 | + |
121 | 124 | cp "$ML_DIR"/ml_start.sh "$INSTALL_DIR" |
122 | 125 | if grep -qs "set -a" "$APP_DIR"/bin/start.sh; then |
123 | 126 | cp "$APP_DIR"/bin/start.sh "$INSTALL_DIR" |
|
162 | 165 | cd "$SRC_DIR" |
163 | 166 | echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml |
164 | 167 | $STD pnpm --filter @immich/sdk --filter immich-web --frozen-lockfile --force install |
| 168 | + unset SHARP_FORCE_GLOBAL_LIBVIPS |
| 169 | + export SHARP_IGNORE_GLOBAL_LIBVIPS=true |
165 | 170 | $STD pnpm --filter @immich/sdk --filter immich-web build |
166 | 171 | cp -a web/build "$APP_DIR"/www |
167 | 172 | cp LICENSE "$APP_DIR" |
|
0 commit comments