This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
forked from bigbluebutton/docker
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
recording: env flag and bbb-record script
- Loading branch information
1 parent
76faab0
commit ce0606d
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd $(dirname $0)/.. | ||
|
||
# load .env | ||
if [ -f .env ] | ||
then | ||
# exclude WELCOME_FOOTER because it may contain invalid characters | ||
export $(cat .env | sed 's/#.*//g' | grep -v "WELCOME_FOOTER" | xargs) | ||
fi | ||
|
||
if [ ! "$ENABLE_RECORDING" == true ]; then | ||
echo "Error: recording is disabled why can't use bbb-record" | ||
echo "set ENABLE_RECORDING in .env if you want to use it" | ||
exit 1 | ||
fi | ||
|
||
./scripts/compose exec recordings-process bbb-record $@ |