From ff2ccbc3f8acccd03bce29561891fd2cf68dcda3 Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 11 May 2021 01:03:24 +0300 Subject: [PATCH] add venus start --- llo/connect-new.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/llo/connect-new.js b/llo/connect-new.js index b528cbc..8c41523 100644 --- a/llo/connect-new.js +++ b/llo/connect-new.js @@ -306,10 +306,10 @@ 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') - 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 +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 ` fs.writeFileSync(`./hybrid/connect/${res.bootstrapstackid}/scripts/1/logs`, myExecLog); @@ -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)