From 244419f4704f721553aee1fdfc608fb522c4c8ca Mon Sep 17 00:00:00 2001 From: Collin Diekvoss Date: Thu, 20 Aug 2026 09:47:32 -0500 Subject: [PATCH] fix(authentik): remove blocking network wait from migration --- modules/nixos/containers/authentik.nix | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/modules/nixos/containers/authentik.nix b/modules/nixos/containers/authentik.nix index 94ae1b0..ad99ba6 100644 --- a/modules/nixos/containers/authentik.nix +++ b/modules/nixos/containers/authentik.nix @@ -295,28 +295,6 @@ in postgresql: password: "file:///run/secrets/authentik-db-password" EOF - - # Wait for network interface to have an IP address - echo "Waiting for network interface to be ready..." - for i in $(seq 1 30); do - if ${pkgs.iproute2}/bin/ip addr show | grep -q "${cfg.localAddress}"; then - echo "Network interface has IP ${cfg.localAddress}" - break - fi - echo "Waiting for IP ${cfg.localAddress}... (attempt $i/30)" - sleep 1 - done - - # Wait for host to be reachable - echo "Waiting for PostgreSQL host ${cfg.db.host} to be reachable..." - for i in $(seq 1 30); do - if ${pkgs.iputils}/bin/ping -c 1 -W 1 ${cfg.db.host} >/dev/null 2>&1; then - echo "Host ${cfg.db.host} is reachable" - break - fi - echo "Waiting for host ${cfg.db.host}... (attempt $i/30)" - sleep 1 - done ''; }; -- 2.51.2