diff --git a/install/generator-cyphernode/generators/app/index.js b/install/generator-cyphernode/generators/app/index.js index 57574e4..bdf822b 100644 --- a/install/generator-cyphernode/generators/app/index.js +++ b/install/generator-cyphernode/generators/app/index.js @@ -273,7 +273,8 @@ module.exports = class extends Generator { if( this.props.gatekeeper_keys && this.props.gatekeeper_keys.clientInformation ) { - if( this.gatekeeper_clientkeyspassword !== this.props.gatekeeper_clientkeyspassword ) { + if( this.gatekeeper_clientkeyspassword !== this.props.gatekeeper_clientkeyspassword && + fs.existsSync(this.destinationPath('clientKeys.7z')) ) { fs.unlinkSync( this.destinationPath('clientKeys.7z') ); }