Files
appstore/apps/immich/3.0.2/scripts/upgrade.sh
T
okxlin b4d8ed3ea4 feat(immich): add v3.0.2 upgrade path (#4686)
Verified: official v3.0.2 compose alignment; adapter strict-store passed; manifests and pinned digests verified; real v1.132.3 pgvecto.rs to v3.0.2 VectorChord migration passed; 4 services healthy, HTTP 200, schema check clean after restart, no secret leak or fatal log findings.
2026-07-10 19:04:56 +08:00

17 lines
365 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ENV_FILE="${ENV_FILE:-./.env}"
if [[ ! -f "$ENV_FILE" ]]; then
echo "$ENV_FILE not found; skipped Immich environment migration"
exit 0
fi
if grep -qE '^DB_STORAGE_TYPE=' "$ENV_FILE"; then
echo "DB_STORAGE_TYPE already exists"
else
printf '%s\n' 'DB_STORAGE_TYPE=SSD' >> "$ENV_FILE"
echo "Added DB_STORAGE_TYPE"
fi