Commit e7f11511 authored by nilanjandaw's avatar nilanjandaw

improved IP extraction process

parent 83e0dc1b
{"id":"192.168.31.51","master_node":"10.129.6.5"}
\ No newline at end of file
{"id":"","master_node":"10.129.6.5"}
\ No newline at end of file
......@@ -15,7 +15,7 @@ function updateConfig() {
}
let data = getIP.stdout.toString().trim().split(' ')
file.id = data[6]
file.id = data[data.length - 3]
fs.writeFileSync('./config.json', JSON.stringify(file));
console.log("Updated Config file");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment