From a1da14f9fb30d82e255c78c71a224c8113ede7f7 Mon Sep 17 00:00:00 2001 From: soraefir Date: Thu, 14 May 2026 17:27:04 +0200 Subject: [PATCH] Fix script health check --- modules/server/containers/apps/jellyfin.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/server/containers/apps/jellyfin.nix b/modules/server/containers/apps/jellyfin.nix index 927b6e7..167913b 100644 --- a/modules/server/containers/apps/jellyfin.nix +++ b/modules/server/containers/apps/jellyfin.nix @@ -74,7 +74,7 @@ in { envFile = config.sops.secrets."CUSTOM".path; script = pkgs.writeShellScript "setup" '' JELLYFIN_URL="https://${containerCfg.subdomain}.${serverCfg.hostDomain}" - until ${pkgs.curl}/bin/curl -sf "$JELLYFIN_URL/health" > /dev/null 2>&1; do + until [ "$(${pkgs.curl}/bin/curl -sf "$JELLYFIN_URL/health")" = "Healthy" ]; do sleep 5 done echo "Jellyfin is up. Sleeping for 20 seconds..." @@ -147,7 +147,7 @@ in { exit 1 fi sleep 5 - until ${pkgs.curl}/bin/curl -sf "$JELLYFIN_URL/health" > /dev/null 2>&1; do + until [ "$(${pkgs.curl}/bin/curl -sf "$JELLYFIN_URL/health")" = "Healthy" ]; do sleep 5 done echo "Jellyfin is up. Sleeping for 20 seconds..."