clay-server 2.20.1-beta.13 → 2.20.1-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/sdk-bridge.js +5 -6
- package/package.json +1 -1
package/lib/sdk-bridge.js
CHANGED
|
@@ -707,14 +707,13 @@ function createSDKBridge(opts) {
|
|
|
707
707
|
// Set socket permissions so the target user can connect
|
|
708
708
|
try { fs.chmodSync(socketPath, 0o777); } catch (e) {}
|
|
709
709
|
|
|
710
|
-
// Spawn worker process as the target Linux user
|
|
711
|
-
|
|
710
|
+
// Spawn worker process as the target Linux user.
|
|
711
|
+
// Inherit full env from daemon, override user-specific vars.
|
|
712
|
+
var workerEnv = Object.assign({}, process.env, {
|
|
712
713
|
HOME: userInfo.home,
|
|
713
714
|
USER: linuxUser,
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
LANG: process.env.LANG || "en_US.UTF-8",
|
|
717
|
-
};
|
|
715
|
+
LOGNAME: linuxUser,
|
|
716
|
+
});
|
|
718
717
|
|
|
719
718
|
console.log("[sdk-bridge] Spawning worker: uid=" + userInfo.uid + " gid=" + userInfo.gid + " cwd=" + cwd + " socket=" + socketPath);
|
|
720
719
|
console.log("[sdk-bridge] Worker script: " + WORKER_SCRIPT);
|