console.info(colors.yellow('\n!!! IMPORTANT !!!'))
/**
console.info(colors.yellow('Running the configuration wizard is optional but recommended after an upgrade to ensure your config file is using the latest available settings.'))
* Fetch tarball
console.info(colors.yellow('Note that the contents of your config file will be displayed during the configuration wizard. It is therefor highly recommended to run the wizard on a non-publicly accessible port or skip this step completely.\n'))
*/
returntrue
ora.text='Looking for latest release...'
}).catch(err=>{
https.get(remoteURL,resp=>{
// Is New Install
if(resp.statusCode!==200){
if(err.code==='ENOENT'){
returnreject(newError('Remote file not found'))
ora.text='First-time install, creating a new config.yml...'
console.info(colors.yellow('\n!!! IMPORTANT !!!'))
console.info(colors.yellow('Running the configuration wizard is optional but recommended after an upgrade to ensure your config file is using the latest available settings.'))
console.info(colors.yellow('Note that the contents of your config file will be displayed during the configuration wizard. It is therefor highly recommended to run the wizard on a non-publicly accessible port or skip this step completely.\n'))
returnfalse
}).catch(err=>{
/**
* Install mode
*/
if(err.code==='ENOENT'){
ora.text='First-time install, creating a new config.yml...'
console.info(colors.cyan('[WARNING] Non-interactive terminal detected. You must manually start the configuration wizard using the command: node wiki configure'))
console.info(colors.cyan('[WARNING] Non-interactive terminal detected. You must manually start the configuration wizard using the command: node wiki configure'))