fix recording entrypoint error

This commit is contained in:
Sofyan Sugianto 2020-08-29 21:05:39 +07:00
parent f7aa707532
commit cd76d89387

View File

@ -7,20 +7,20 @@ cd /usr/local/bigbluebutton/core/scripts
PATH_CHECK="/var/bigbluebutton/recording/status"
while true; do
echo "execute workers..."
if [[ compgen -G "$PATH_CHECK/recorded/*.done" ]];then
if [[ $(compgen -G "$PATH_CHECK/recorded/*.done") ]];then
bundle exec ruby rap-archive-worker.rb
fi
if [[ compgen -G "$PATH_CHECK/archived/*.done" ]];then
if [[ $(compgen -G "$PATH_CHECK/archived/*.done") ]];then
bundle exec ruby rap-sanity-worker.rb
fi
if [[ compgen -G "$PATH_CHECK/sanity/*.done" ]];then
if [[ $(compgen -G "$PATH_CHECK/sanity/*.done") ]];then
bundle exec ruby rap-process-worker.rb
fi
if [[ compgen -G "$PATH_CHECK/processed/*.done" ]];then
if [[ $(compgen -G "$PATH_CHECK/processed/*.done") ]];then
bundle exec ruby rap-publish-worker.rb
fi
#bundle exec ruby rap-caption-inbox.rb
if [[ compgen -G "$PATH_CHECK/ended/*.done" ]];then
if [[ $(compgen -G "$PATH_CHECK/ended/*.done") ]];then
bundle exec ruby rap-events-worker.rb
fi
sleep 30s