mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
Fix bug
This commit is contained in:
parent
11cb8a3ba8
commit
e215a52fd9
14
cli/init.js
14
cli/init.js
@ -121,12 +121,6 @@ inquirer.prompt(form).then(as => {
|
|||||||
},
|
},
|
||||||
url: as['url'],
|
url: as['url'],
|
||||||
port: parseInt(as['port'], 10),
|
port: parseInt(as['port'], 10),
|
||||||
https: {
|
|
||||||
enable: as['https'],
|
|
||||||
key: as['https_key'] || null,
|
|
||||||
cert: as['https_cert'] || null,
|
|
||||||
ca: as['https_ca'] || null
|
|
||||||
},
|
|
||||||
mongodb: {
|
mongodb: {
|
||||||
host: as['mongo_host'],
|
host: as['mongo_host'],
|
||||||
port: parseInt(as['mongo_port'], 10),
|
port: parseInt(as['mongo_port'], 10),
|
||||||
@ -151,6 +145,14 @@ inquirer.prompt(form).then(as => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (as['https']) {
|
||||||
|
conf.https = {
|
||||||
|
key: as['https_key'] || null,
|
||||||
|
cert: as['https_cert'] || null,
|
||||||
|
ca: as['https_ca'] || null
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
console.log(`Thanks. Writing the configuration to ${chalk.bold(path.resolve(configPath))}`);
|
console.log(`Thanks. Writing the configuration to ${chalk.bold(path.resolve(configPath))}`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user