| 14 | await writeFile('fle-cluster-config.json', JSON.stringify(configuration, null, 2)); |
| 15 | |
| 16 | async function downloadCryptShared() { |
| 17 | const crypt_shared_dir = await downloadMongoDb({ |
| 18 | directory: join(runnerDir, 'crypt'), |
| 19 | version: serverVersion, |
| 20 | downloadOptions: { |
| 21 | enterprise: true, |
| 22 | crypt_shared: true |
| 23 | } |
| 24 | }); |
| 25 | |
| 26 | for (const dirEntry of await readdir(crypt_shared_dir)) { |
| 27 | if (/crypt/.test(dirEntry)) { |
| 28 | return join(crypt_shared_dir, dirEntry); |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | async function run() { |
| 34 | await rm(runnerDir, { recursive: true }).catch(() => {}); |