mirror of
https://github.com/wekan/wekan.git
synced 2025-06-27 17:00:47 -04:00
00checkStartup, userInfo was missing
fixes: https://github.com/wekan/wekan/issues/4566#issuecomment-1231906040
This commit is contained in:
parent
c587d34158
commit
cee1dd94ee
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
var fs = require('fs');
|
const fs = require('fs');
|
||||||
var os = require('os');
|
const os = require('os');
|
||||||
|
|
||||||
let errors = [];
|
let errors = [];
|
||||||
if (!process.env.WRITABLE_PATH) {
|
if (!process.env.WRITABLE_PATH) {
|
||||||
|
@ -8,6 +8,7 @@ if (!process.env.WRITABLE_PATH) {
|
||||||
try {
|
try {
|
||||||
fs.accessSync(process.env.WRITABLE_PATH, fs.constants.W_OK);
|
fs.accessSync(process.env.WRITABLE_PATH, fs.constants.W_OK);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
const userInfo = os.userInfo();
|
||||||
errors.push("can't write to " + process.env.WRITABLE_PATH, 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("the path of WRITABLE_PATH (" + process.env.WRITABLE_PATH + ") must be writable !!!");
|
||||||
errors.push("username: " + userInfo["username"] + " - uid: " + userInfo["uid"] + " - gid: " + userInfo["gid"]);
|
errors.push("username: " + userInfo["username"] + " - uid: " + userInfo["uid"] + " - gid: " + userInfo["gid"]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue