diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-15 17:29:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-15 17:29:32 +0900 |
| commit | 39bf3b7d728cd6b78f22ad1eef9b0ac77afdbb75 (patch) | |
| tree | 3dcff8a774ff73f841b5a0644d195ea344af94be /cli | |
| parent | Fix bug (diff) | |
| download | sharkey-39bf3b7d728cd6b78f22ad1eef9b0ac77afdbb75.tar.gz sharkey-39bf3b7d728cd6b78f22ad1eef9b0ac77afdbb75.tar.bz2 sharkey-39bf3b7d728cd6b78f22ad1eef9b0ac77afdbb75.zip | |
Fix bug
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/init.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cli/init.js b/cli/init.js index 7a3e7d1b51..efa9911eef 100644 --- a/cli/init.js +++ b/cli/init.js @@ -121,12 +121,6 @@ inquirer.prompt(form).then(as => { }, url: as['url'], 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: { host: as['mongo_host'], 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))}`); try { |