cleaning documentation

This commit is contained in:
les
2019-09-24 11:46:11 +02:00
parent f5a2c788ac
commit 803a217122
20 changed files with 191 additions and 108 deletions

View File

@@ -33,7 +33,10 @@ async function setupQuestionnaire(is_docker, db) {
message: 'Specify a baseurl for this gancio installation! (eg. http://gancio.cisti.org)',
name: 'baseurl',
default: 'http://localhost:13120',
validate: notEmpty
validate: value => {
if (!value) return false
return /^https?:\/\//.test(value)
}
})
questions.push({
@@ -134,6 +137,9 @@ async function setupQuestionnaire(is_docker, db) {
questions.push({
name: 'admin.email',
message: `Admin email (a first user with this username will be created)`,
default: options => {
return options.title.replace(' ', '').toLowerCase() + '@' + options.baseurl
},
validate: notEmpty
})