forked from kamba4/sunders
chore: Immediately starts update_camera on container startup
This commit is contained in:
parent
58f048adba
commit
f94080f45f
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue