Merge pull request #4581 from mfilser/checkStartup-details_of_wekan_user

00checkStartup, on error give more details on current user which run's wekan
This commit is contained in:
Lauri Ojansivu 2022-07-05 23:21:22 +03:00 committed by GitHub
commit 65a031f29d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
var fs = require('fs');
var os = require('os');
let errors = [];
if (!process.env.WRITABLE_PATH) {
@ -9,6 +10,7 @@ if (!process.env.WRITABLE_PATH) {
} catch (err) {
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"]);
}
}