forked from kamba4/sunders
fix: Send data handler output to container logs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
aa6ef7f362
commit
5ce403cec2
1 changed files with 18 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
printf 'ok\n' > /run/update_camera.status
|
||||
|
||||
####################################################################################################
|
||||
### Crontab settings
|
||||
|
|
@ -8,7 +9,7 @@ set -e
|
|||
|
||||
cat<<EOF | dcrontab -
|
||||
# min hour day month weekday command
|
||||
*/15 * * * * sh /opt/update_camera.sh >> /var/log/update_camera_$(date +\%Y\%m\%d\%H\%M\%S).log 2>&1
|
||||
*/15 * * * * sh /opt/run_update_camera.sh
|
||||
EOF
|
||||
|
||||
####################################################################################################
|
||||
|
|
@ -24,7 +25,7 @@ echo "Prescripts done"
|
|||
####################################################################################################
|
||||
|
||||
echo "Running update once initially..."
|
||||
sh /opt/update_camera.sh >> /var/log/update_camera_$(date +\%Y\%m\%d\%H\%M\%S).log 2>&1
|
||||
sh /opt/run_update_camera.sh
|
||||
echo "Initial update done"
|
||||
|
||||
####################################################################################################
|
||||
|
|
|
|||
Loading…
Reference in a new issue