mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
16 lines
298 B
JavaScript
16 lines
298 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'];
|
|
|
|
for (const dir of neededDirs) {
|
|
fs.ensureDirSync(path.join(runDir, dir));
|
|
}
|
|
}
|