mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 09:04:07 -08:00
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
|
#!/usr/bin/env zx
|
||
|
|
||
|
import path from 'path';
|
||
|
import { fs } from 'zx';
|
||
|
|
||
|
/**
|
||
|
* Creates the needed directories for the queue setup so their
|
||
|
* permissions get set correctly.
|
||
|
*/
|
||
|
export function setup({ runDir }) {
|
||
|
const neededDirs = ['n8n-worker1', 'n8n-worker2', 'n8n-main1', 'n8n_main2', 'postgres'];
|
||
|
|
||
|
for (const dir of neededDirs) {
|
||
|
fs.ensureDirSync(path.join(runDir, dir));
|
||
|
}
|
||
|
}
|