Fixes
(cherry picked from commit 359fff4c28c58bb5d047993ae91cf2b65f03eaa6)
This commit is contained in:
parent
a10ea02e1c
commit
dbcc684a46
@ -1,3 +1,5 @@
|
|||||||
|
export BBB_SERVER_URL="http://localhost/bigbluebutton/api"
|
||||||
|
|
||||||
# Change to HTML5 directory
|
# Change to HTML5 directory
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
echo "Working directory: $PWD"
|
echo "Working directory: $PWD"
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
|
const path = require('path');
|
||||||
const url = require('url');
|
const url = require('url');
|
||||||
const helper = require('./helper');
|
const helper = require('./helper');
|
||||||
|
const httpPath = path.join(path.dirname(require.resolve('axios')),'lib/adapters/http');
|
||||||
|
const http = require(httpPath);
|
||||||
|
|
||||||
(async () =>
|
(async () =>
|
||||||
{
|
{
|
||||||
@ -15,7 +18,7 @@ const helper = require('./helper');
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var response = await axios.get(check);
|
var response = await axios.get(check, {adapter: http});
|
||||||
var status = response.data.html5clientStatus
|
var status = response.data.html5clientStatus
|
||||||
console.log(response.data);
|
console.log(response.data);
|
||||||
if(status === 'running')
|
if(status === 'running')
|
||||||
|
Loading…
Reference in New Issue
Block a user