This commit is contained in:
lesion 2021-11-09 12:59:20 +01:00
parent 7163fe88ae
commit 25f5864964
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -15,6 +15,7 @@ let config = {
db: {},
upload_path: path.resolve(process.env.cwd || '', 'uploads'),
write (config_path= process.env.config_path || './config.json') {
delete config.firstrun
return fs.writeFileSync(config_path, JSON.stringify(config, null, 2))
},