|
@ -123,9 +123,10 @@ const { mkdir } = require('fs').promises; |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
const apptest = require('express')(); |
|
|
const apptest = require('express')(); |
|
|
const servertest = await apptest.listen(0, () => { |
|
|
const servertest = apptest.listen(0, () => { |
|
|
var newport = servertest.address().port |
|
|
var newport = servertest.address().port |
|
|
servertest.close(); |
|
|
servertest.close(); |
|
|
|
|
|
(async function main() { |
|
|
fs.mkdir(`./hybrid/connect/${res.bootstrapstackid}`, { recursive: true }, (err) => { |
|
|
fs.mkdir(`./hybrid/connect/${res.bootstrapstackid}`, { recursive: true }, (err) => { |
|
|
if (err){ |
|
|
if (err){ |
|
|
var RES = new Object(); |
|
|
var RES = new Object(); |
|
@ -181,6 +182,7 @@ var peerconfig =` |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
})(); |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -307,7 +309,7 @@ docker run -d \ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
date=$(date '+%Y-%m-%d-%H:%M') |
|
|
date=$(date '+%Y-%m-%d-%H:%M') |
|
|
node /settingsclient/venus-stats.js --insert=yes --port=${mongoserver.mongo_port} --ip='127.0.0.1' --user=swarmlab --password=${mongoserver.mongo_pass} --db=${mongoserver.mongo_db} --coll=${mongoserver.mongo_coll} --json=$date |
|
|
node /usr/local/bin/venus-stats.js --insert=yes --port=${mongoserver.mongo_port} --ip='127.0.0.1' --user=swarmlab --password=${mongoserver.mongo_pass} --db=${mongoserver.mongo_db} --coll=${mongoserver.mongo_coll} --json=$date |
|
|
` |
|
|
` |
|
|
|
|
|
|
|
|
fs.writeFileSync(`./hybrid/connect/${res.bootstrapstackid}/scripts/1/logs`, myExecLog); |
|
|
fs.writeFileSync(`./hybrid/connect/${res.bootstrapstackid}/scripts/1/logs`, myExecLog); |
|
|