aboutsummaryrefslogtreecommitdiff
path: root/src/UserData
diff options
context:
space:
mode:
authorJakob Stendahl <jakobste@uio.no>2021-10-03 16:44:59 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2021-10-03 16:56:41 +0200
commit5cc8e0a8ed605a15b95b707b9d1b805f32271e3f (patch)
tree04cd86c70eff0a53df41a2bf7d0867207014f67c /src/UserData
parent076c967a8aaac929735694f295ade5adaf8c9ff3 (diff)
downloadLuxcena-Neo-5cc8e0a8ed605a15b95b707b9d1b805f32271e3f.tar.gz
Luxcena-Neo-5cc8e0a8ed605a15b95b707b9d1b805f32271e3f.zip
:building_construction: Use UNIX socket for IPC instead of stdin/out
Diffstat (limited to 'src/UserData')
-rw-r--r--src/UserData/index.js3
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))
}