added cleanup prompt

This commit is contained in:
jash
2018-11-03 12:27:04 +01:00
committed by kexkey
parent e7cbbfd0d2
commit 653c69f5bf
2 changed files with 9 additions and 3 deletions

View File

@@ -359,7 +359,8 @@ module.exports = class extends Generator {
lightning_nodename: '',
lightning_nodecolor: '',
gatekeeper_sslcert: '',
gatekeeper_sslkey: ''
gatekeeper_sslkey: '',
installer_cleanup: false
}, this.props );
this.props.default_username = process.env.DEFAULT_USER || '';
}

View File

@@ -96,8 +96,13 @@ module.exports = {
{
name: "docker-compose",
value: "compose"
}
]
}]
},
{
type: 'confirm',
name: 'installer_cleanup',
default: utils._getDefault( 'installer_cleanup' ),
message: prefix()+'Cleanup installer after installation?'+utils._getHelp('installer_cleanup'),
}];
},
templates: function( props ) {