From 25a345dd80342abb346e9b66b0d326551e7ac9d4 Mon Sep 17 00:00:00 2001 From: Sofyan Sugianto Date: Sat, 15 Aug 2020 08:42:43 +0700 Subject: [PATCH] add recording feature into setup scripts --- docker-compose.recordings.yml | 4 ++-- scripts/bbb-record | 4 ++-- scripts/setup | 10 ++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/docker-compose.recordings.yml b/docker-compose.recordings.yml index 1d2b155..787e39a 100644 --- a/docker-compose.recordings.yml +++ b/docker-compose.recordings.yml @@ -1,7 +1,7 @@ version: '3.6' services: - recordings-process: - build: mod/recordings-process + recordings: + build: mod/recordings environment: DOMAIN: ${DOMAIN} volumes: diff --git a/scripts/bbb-record b/scripts/bbb-record index c69c6f5..15fb849 100755 --- a/scripts/bbb-record +++ b/scripts/bbb-record @@ -16,5 +16,5 @@ if [ ! "$ENABLE_RECORDING" == true ]; then exit 1 fi -./scripts/compose exec recordings-process bbb-record $@ -./scripts/compose logs --tail=15 recordings-process \ No newline at end of file +./scripts/compose exec recordings bbb-record $@ +./scripts/compose logs --tail=15 recordings \ No newline at end of file diff --git a/scripts/setup b/scripts/setup index d04e93c..20c610a 100755 --- a/scripts/setup +++ b/scripts/setup @@ -45,6 +45,11 @@ while [[ -z "$DOMAIN" ]]; do read -p "Please enter the domain name: " DOMAIN done +recording="" +while [[ ! $recording =~ ^(y|n)$ ]]; do + read -p "Should recording feature be included? (y/n): " recording +done + ip_correct="" while [[ ! $ip_correct =~ ^(y|n)$ ]]; do read -p "Is $EXTERNAL_IPv4 your external IPv4 address? (y/n): " ip_correct @@ -92,6 +97,11 @@ then sed -i "s/ENABLE_HTTPS_PROXY.*/#ENABLE_HTTPS_PROXY=true/" .env fi +if [ ! "$recording" == "y" ] +then + sed -i "s/ENABLE_RECORDING.*/#ENABLE_RECORDING=true/" .env +fi + if [ "$coturn" == "y" ] then sed -i "s/.*TURN_SERVER=.*/TURN_SERVER=turns:$DOMAIN:465?transport=tcp/" .env