docker/mod/recordings/entrypoint.sh

28 lines
823 B
Bash
Raw Normal View History

#!/bin/bash
# print all logs to stdout
python3 -u /log-collector.py &
cd /usr/local/bigbluebutton/core/scripts
2020-08-27 10:47:33 +02:00
PATH_CHECK="/var/bigbluebutton/recording/status"
while true; do
echo "execute workers..."
2020-08-29 16:05:39 +02:00
if [[ $(compgen -G "$PATH_CHECK/recorded/*.done") ]];then
bundle exec ruby rap-archive-worker.rb
2020-08-27 10:47:33 +02:00
fi
2020-08-29 16:05:39 +02:00
if [[ $(compgen -G "$PATH_CHECK/archived/*.done") ]];then
bundle exec ruby rap-sanity-worker.rb
2020-08-27 10:47:33 +02:00
fi
2020-08-29 16:05:39 +02:00
if [[ $(compgen -G "$PATH_CHECK/sanity/*.done") ]];then
bundle exec ruby rap-process-worker.rb
2020-08-27 10:47:33 +02:00
fi
2020-08-29 16:05:39 +02:00
if [[ $(compgen -G "$PATH_CHECK/processed/*.done") ]];then
bundle exec ruby rap-publish-worker.rb
2020-08-27 10:47:33 +02:00
fi
#bundle exec ruby rap-caption-inbox.rb
2020-08-29 16:05:39 +02:00
if [[ $(compgen -G "$PATH_CHECK/ended/*.done") ]];then
bundle exec ruby rap-events-worker.rb
2020-08-27 10:47:33 +02:00
fi
sleep 30s
done