Files
n8n-enterprise-unlocked/packages/@n8n/benchmark/scripts/n8n-setups/postgres-with-insights/setup.mjs
2025-03-27 17:08:16 +01:00

16 lines
310 B
JavaScript

#!/usr/bin/env zx
import path from 'path';
import { fs } from 'zx';
/**
* Creates the needed directories so the permissions get set correctly.
*/
export function setup({ runDir }) {
const neededDirs = ['n8n', 'postgres'];
for (const dir of neededDirs) {
fs.ensureDirSync(path.join(runDir, dir));
}
}