diff options
author | Jakob Stendahl <jakobste@uio.no> | 2021-10-03 16:44:59 +0200 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2021-10-03 16:56:41 +0200 |
commit | 5cc8e0a8ed605a15b95b707b9d1b805f32271e3f (patch) | |
tree | 04cd86c70eff0a53df41a2bf7d0867207014f67c /src/UserData/index.js | |
parent | 076c967a8aaac929735694f295ade5adaf8c9ff3 (diff) | |
download | Luxcena-Neo-5cc8e0a8ed605a15b95b707b9d1b805f32271e3f.tar.gz Luxcena-Neo-5cc8e0a8ed605a15b95b707b9d1b805f32271e3f.zip |
:building_construction: Use UNIX socket for IPC instead of stdin/out
Diffstat (limited to 'src/UserData/index.js')
-rw-r--r-- | src/UserData/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/UserData/index.js b/src/UserData/index.js index e5318c9..704c5d5 100644 --- a/src/UserData/index.js +++ b/src/UserData/index.js @@ -40,6 +40,9 @@ function ensureMainConfig() { if (config.DiscoveryServer.address == null) { config.DiscoveryServer.address = "https://erj46s.deta.dev"; } if (config.DiscoveryServer.broadcastSelf == null) { config.DiscoveryServer.broadcastSelf = false; } + if (config.neoRuntimeIPC == null) { config.neoRuntimeIPC = {}; } + if (config.neoRuntimeIPC.socketFile == null) { config.neoRuntimeIPC.socketFile = "/tmp/neo_runtime.sock"; } + fse.writeFileSync(__datadir + "/config/config.ini", ini.encode(config)) } |