diff --git a/entrypoint.sh b/entrypoint.sh index e462e08..cec80ab 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/sh -echo "[INFO] STARTING AI MODEL TRAINING SERVER" -echo "[INFO] LAUNCH CRON IN BACKGROUND" +echo '[INFO] STARTING AI MODEL TRAINING SERVER' +echo '[INFO] LAUNCH CRON IN BACKGROUND' service cron start service cron status @@ -9,9 +9,10 @@ service cron status while true; do if [ -f "/app/cron_exist.cron" ]; then echo "YES CRON WORKS" - else - echo "NO CRON FOR THE MOMENT" + break; fi - + sleep 10 done + +sleep infinity