diff --git a/web/celery-entrypoint.sh b/web/celery-entrypoint.sh index 4a6d228dc..2f2cf4bd1 100755 --- a/web/celery-entrypoint.sh +++ b/web/celery-entrypoint.sh @@ -262,6 +262,11 @@ for worker in "${workers[@]}"; do done commands="${commands%&}" -eval "$commands" +IFS=$'\n' read -rd '' -a command_array <<< "$commands" +for cmd in "${command_array[@]}"; do + if [[ -n "$cmd" ]]; then + $cmd + fi +done -wait \ No newline at end of file +wait