mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 11:06:35 +00:00
@@ -204,8 +204,8 @@ process.on('SIGINT', () => {
|
||||
|
||||
try {
|
||||
fs.mkdirSync(path.join(argv.rundir), {recursive: true, mode: 0o700});
|
||||
fs.mkdirSync(path.join(argv.rundir, 'db'));
|
||||
fs.mkdirSync(path.join(argv.rundir, 'temp'));
|
||||
fs.mkdirSync(path.join(argv.rundir, 'db'), {recursive: true});
|
||||
fs.mkdirSync(path.join(argv.rundir, 'temp'), {recursive: true});
|
||||
} catch (error) {
|
||||
console.error('Failed to access runtime directory');
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user