mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
Immich: Untested fix for 1.133.0
- checks if installed version is <1.133.0 and upgrades/migrates to VectorChord in immich.sh - Fresh install now uses VectorChord in immich-install.sh
This commit is contained in:
12
ct/immich.sh
12
ct/immich.sh
@@ -182,6 +182,18 @@ function update_script() {
|
||||
systemctl stop immich-web
|
||||
systemctl stop immich-ml
|
||||
msg_ok "Stopped ${APP}"
|
||||
if [[ "$(cat /opt/${APP}_version.txt)" < "1.133.0" ]]; then
|
||||
msg_info "Upgrading to the VectorChord PostgreSQL extension"
|
||||
$STD apt-get update
|
||||
$STD apt-get install postgresql-16-pgvector -y
|
||||
curl -fsSL https://github.com/tensorchord/VectorChord/releases/download/0.3.0/postgresql-16-vchord_0.3.0-1_amd64.deb -o vchord.deb
|
||||
$STD dpkg -i vchord.deb
|
||||
rm vchord.deb
|
||||
sed -i -e "s/'vectors.so'/'vchord.so, vectors.so'/" \
|
||||
-e "/^search_path/s/, vectors'//" /etc/postgresql/16/main/postgresql.conf
|
||||
systemctl restart postgresql.service
|
||||
msg_done "Upgrade in progress. When Immich restarts, watch the logs for 're-indexing' to complete"
|
||||
fi
|
||||
INSTALL_DIR="/opt/${APP}"
|
||||
UPLOAD_DIR="${INSTALL_DIR}/upload"
|
||||
SRC_DIR="${INSTALL_DIR}/source"
|
||||
|
||||
Reference in New Issue
Block a user