From 41fa9702d6205b9dc5d0466bca4630d8924ce5d7 Mon Sep 17 00:00:00 2001 From: SKP Date: Fri, 20 Dec 2019 13:27:50 +0100 Subject: [PATCH] Cyphernodeconf now exits when config.7z is not present but the recreate option was specified --- cyphernodeconf_docker/lib/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cyphernodeconf_docker/lib/app.js b/cyphernodeconf_docker/lib/app.js index dad08ac..2e96123 100644 --- a/cyphernodeconf_docker/lib/app.js +++ b/cyphernodeconf_docker/lib/app.js @@ -149,6 +149,11 @@ module.exports = class App { } ); if( !fs.existsSync(this.destinationPath(configArchiveFileName)) ) { + if( this.sessionData.noWizard ) { + console.log(chalk.bold.red('Unable to run in no wizard mode without a config.7z')+'\n'); + process.exit(); + return; + } let r = {}; process.stdout.write(ansi.clear+ansi.reset); while( !r.password0 || !r.password1 || r.password0 !== r.password1 ) {