|
|
@ -306,9 +306,9 @@ docker run -d \ |
|
|
|
fs.writeFileSync(`./hybrid/connect/${res.bootstrapstackid}/swarmlabstatus`, 'wgstatusclient=off'); |
|
|
|
|
|
|
|
const myExecLog = ` |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
date=$(date '+%Y-%m-%d-%H:%M') |
|
|
|
date=`date '+%Y-%m-%d-%H:%M'` |
|
|
|
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 |
|
|
|
` |
|
|
|
|
|
|
@ -353,6 +353,7 @@ console.log(RES.dev_name) |
|
|
|
// *** save wg config file wg0.conf
|
|
|
|
// *****************************************
|
|
|
|
(async() => { |
|
|
|
fs.mkdirSync(`./hybrid/connect/${res.bootstrapstackid}`, { recursive: true }); |
|
|
|
RES.serverconf = await wg_save_clientconf(RES) |
|
|
|
RES.serverrun = await wg_save_ifup_linux(RES) |
|
|
|
RES.serverconnect = await wg_save_connect_linux(RES) |
|
|
|