Przeglądaj źródła

00checkStartup, on error give more details on current user which run's Wekan

Martin Filser 3 lat temu
rodzic
commit
6c94b57cfc
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      server/00checkStartup.js

+ 2 - 0
server/00checkStartup.js

@@ -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"]);
   }
 }