forked from kamba4/sunders
moved files into subdirs
This commit is contained in:
parent
bf6ccf5094
commit
10fcf55b10
242 changed files with 23 additions and 0 deletions
29
data_handler/utils/entrypoint.sh
Executable file
29
data_handler/utils/entrypoint.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
|
||||
####################################################################################################
|
||||
### Crontab settings
|
||||
####################################################################################################
|
||||
|
||||
cat<<EOF | dcrontab -
|
||||
# min hour day month weekday command
|
||||
5 * * * * sh /opt/update_camera.sh
|
||||
EOF
|
||||
|
||||
####################################################################################################
|
||||
### Run prescripts
|
||||
####################################################################################################
|
||||
|
||||
php /opt/init_db.php
|
||||
#TODO add db_migrations
|
||||
echo "Prescripts done"
|
||||
|
||||
####################################################################################################
|
||||
### Run cmd
|
||||
####################################################################################################
|
||||
|
||||
# see: https://github.com/dubiousjim/dcron/issues/13
|
||||
# ignore using `exec` for `dcron` to get another pid instead of `1`
|
||||
# exec "$@"
|
||||
"$@"
|
Loading…
Add table
Add a link
Reference in a new issue