From cee1dd94ee651ef950654a27e7cc0a8bce8eb0dc Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Tue, 30 Aug 2022 19:17:31 +0200 Subject: [PATCH] 00checkStartup, userInfo was missing fixes: https://github.com/wekan/wekan/issues/4566#issuecomment-1231906040 --- server/00checkStartup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/00checkStartup.js b/server/00checkStartup.js index dfea3702f..b4d65be52 100644 --- a/server/00checkStartup.js +++ b/server/00checkStartup.js @@ -1,5 +1,5 @@ -var fs = require('fs'); -var os = require('os'); +const fs = require('fs'); +const os = require('os'); let errors = []; if (!process.env.WRITABLE_PATH) { @@ -8,6 +8,7 @@ if (!process.env.WRITABLE_PATH) { 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"]);