2020-08-15 03:26:33 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
|
|
|
# load .env
|
|
|
|
if [ -f .env ]
|
|
|
|
then
|
|
|
|
# exclude WELCOME_FOOTER because it may contain invalid characters
|
2020-08-27 10:47:33 +02:00
|
|
|
export $(cat .env | sed 's/#.*//g' | grep -v "WELCOME_FOOTER" | grep -v "WELCOME_MESSAGE" | xargs)
|
2020-08-15 03:26:33 +02:00
|
|
|
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
|
|
|
|
|
2020-08-15 03:42:43 +02:00
|
|
|
./scripts/compose exec recordings bbb-record $@
|
|
|
|
./scripts/compose logs --tail=15 recordings
|