From f94080f45f63a5188ebe9b211ed27a815a78c49e Mon Sep 17 00:00:00 2001 From: Vincent Mahnke Date: Sat, 25 Oct 2025 21:20:27 +0200 Subject: [PATCH] chore: Immediately starts `update_camera` on container startup --- data_handler/utils/entrypoint.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/data_handler/utils/entrypoint.sh b/data_handler/utils/entrypoint.sh index 2109d85..9e726e8 100755 --- a/data_handler/utils/entrypoint.sh +++ b/data_handler/utils/entrypoint.sh @@ -20,7 +20,15 @@ php /opt/init_db.php echo "Prescripts done" #################################################################################################### -### Run cmd +### Run script once immediately +#################################################################################################### + +echo "Running update once initially..." +sh /opt/update_camera.sh >> /var/log/update_camera_$(date +\%Y\%m\%d\%H\%M\%S).log 2>&1 +echo "Initial update done" + +#################################################################################################### +### Run cron to schedule periodic task #################################################################################################### # see: https://github.com/dubiousjim/dcron/issues/13