fix setup

This commit is contained in:
soraefir
2026-05-15 01:10:34 +02:00
parent 09cc16bc40
commit 3e921ef2ab

View File

@@ -59,7 +59,7 @@ in {
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS earthdistance CASCADE;"
IMMICH_URL=http://immich-server:2283
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
sleep 5
done
${pkgs.curl}/bin/curl -X POST "$IMMICH_URL/api/admin/users" \