Unverified Commit 24fb07f4 authored by Ahmad Nemati's avatar Ahmad Nemati Committed by GitHub

Update app.js

parent b7bc3784
......@@ -14,12 +14,12 @@ app.listen(port, () => console.log(`Example app listening on port ${port}!`))
async function run() {
let a = await shell.exec('cd .. && cd mt && ./server1.sh', {silent: true}).stdout;
let a = await shell.exec('cd .. && cd mt && sudo ./server1.sh', {silent: true}).stdout;
console.log('Reset Proxy')
}
async function checkProcessWork() {
let a = await shell.exec('nc -vz 127.0.0.1 88').stderr;
let a = await shell.exec('nc -vz 127.0.0.1 443').stderr;
if (a.includes('succeeded'))
return true
run()
......
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