immich fix

This commit is contained in:
soraefir
2026-06-07 21:04:06 +02:00
parent 0df635666f
commit 45338a43f9

View File

@@ -64,6 +64,8 @@ in {
PSQL="${pkgs.postgresql}/bin/psql -U postgres" PSQL="${pkgs.postgresql}/bin/psql -U postgres"
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS vchord CASCADE;" $PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS vchord CASCADE;"
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS earthdistance CASCADE;" $PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS earthdistance CASCADE;"
$PSQL -d "immich_db" -tAc "ALTER EXTENSION vchord UPDATE;"
$PSQL -d "immich_db" -tAc "ALTER EXTENSION earthdistance UPDATE;"
IMMICH_URL="https://${containerCfg.subdomain}.${serverCfg.domain}" IMMICH_URL="https://${containerCfg.subdomain}.${serverCfg.domain}"
until [[ "$(${pkgs.curl}/bin/curl -s -o /dev/null -w "%{http_code}" "$IMMICH_URL")" =~ (200|301|302) ]]; do until [[ "$(${pkgs.curl}/bin/curl -s -o /dev/null -w "%{http_code}" "$IMMICH_URL")" =~ (200|301|302) ]]; do