The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
const fs = require ( 'fs' ) ;
const os = require ( 'os' ) ;
let errors = [ ] ;
if ( ! process . env . WRITABLE _PATH ) {
errors . push ( "WRITABLE_PATH environment variable missing and/or unset, please configure !" ) ;
} else {
try {
fs . accessSync ( process . env . WRITABLE _PATH , fs . constants . W _OK ) ;
} catch ( err ) {
const userInfo = os . userInfo ( ) ;
errors . push ( "can't write to " + process . env . WRITABLE _PATH , err ) ;
errors . push ( "the path of WRITABLE_PATH (" + process . env . WRITABLE _PATH + ") must be writable !!!" ) ;
errors . push ( "username: " + userInfo [ "username" ] + " - uid: " + userInfo [ "uid" ] + " - gid: " + userInfo [ "gid" ] ) ;
}
}
if ( errors . length > 0 ) {
console . error ( "\n\n" ) ;
console . error ( errors . join ( "\n" ) ) ;
console . error ( "\n" ) ;
console . error ( "Stopping Wekan" ) ;
console . error ( "Wekan isn't runnable. Please resolve the error's above and restart Wekan !" ) ;
console . error ( "\n\n" ) ;
process . exit ( 1 ) ;
}