diff --git a/modules/server/containers/apps/jellyfin.nix b/modules/server/containers/apps/jellyfin.nix index b3a80f5..d75e301 100644 --- a/modules/server/containers/apps/jellyfin.nix +++ b/modules/server/containers/apps/jellyfin.nix @@ -108,6 +108,11 @@ in { --arg pass "$DEFAULT_ADMIN_PASSWORD" \ '{"Name": $name, "Password": $pass}') + if ! ${pkgs.curl}/bin/curl -sSf -X GET "$JELLYFIN_URL/Startup/User"; then + echo "ERROR: Failed to get base user." + exit 1 + fi + if ! ${pkgs.curl}/bin/curl -sSf -X POST "$JELLYFIN_URL/Startup/User" \ -H 'accept: */*' \ -H "Content-Type: application/json" \