add recording feature into setup scripts

This commit is contained in:
Sofyan Sugianto
2020-08-15 08:42:43 +07:00
parent fe17745096
commit 25a345dd80
3 changed files with 14 additions and 4 deletions

View File

@ -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