chore: Immediately starts update_camera on container startup

This commit is contained in:
Vincent Mahnke 2025-10-25 21:20:27 +02:00
commit f94080f45f
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469

View file

@ -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