mirror of
https://github.com/bigbluebutton/docker.git
synced 2025-01-23 14:08:35 +01:00
fix override path variables
This commit is contained in:
parent
0ebfe4d0bd
commit
88fb25c9e6
@ -12,7 +12,6 @@ PATH_TO_CHECK="/var/bigbluebutton/recording/status"
|
|||||||
CMD_DIR_PATH="/usr/local/bigbluebutton/core/scripts"
|
CMD_DIR_PATH="/usr/local/bigbluebutton/core/scripts"
|
||||||
|
|
||||||
function do_monitoring() {
|
function do_monitoring() {
|
||||||
check_done_files
|
|
||||||
while ! compgen -G "$PATH_TO_CHECK" > /dev/null; do
|
while ! compgen -G "$PATH_TO_CHECK" > /dev/null; do
|
||||||
echo "$PATH_TO_CHECK returning 0 files, sleeping for 30s..."
|
echo "$PATH_TO_CHECK returning 0 files, sleeping for 30s..."
|
||||||
sleep 30
|
sleep 30
|
||||||
@ -27,7 +26,7 @@ function do_monitoring() {
|
|||||||
do_monitoring
|
do_monitoring
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_done_files() {
|
function initialize_variables() {
|
||||||
echo "$FILES_TO_CHECK"
|
echo "$FILES_TO_CHECK"
|
||||||
if [[ ! -z $FILES_TO_CHECK ]]; then
|
if [[ ! -z $FILES_TO_CHECK ]]; then
|
||||||
if [[ $FILES_TO_CHECK == "processed" ]]; then
|
if [[ $FILES_TO_CHECK == "processed" ]]; then
|
||||||
@ -55,4 +54,7 @@ function check_done_files() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# first check variables
|
||||||
|
initialize_variables
|
||||||
|
# main execution
|
||||||
do_monitoring
|
do_monitoring
|
||||||
|
Loading…
Reference in New Issue
Block a user