fix: Send data handler output to container logs
All checks were successful
Build (and tag) Images / Build data_handler Image (push) Successful in 39s
Build (and tag) Images / Build web Image (push) Successful in 55s

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Copilot 2026-11-15 14:28:07 +01:00
commit 5ce403cec2
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469

View file

@ -0,0 +1,12 @@
#!/bin/sh
status_file=/run/update_camera.status
status_file_tmp="${status_file}.$$"
if sh /opt/update_camera.sh 2>&1 | tee /proc/1/fd/1 | grep -i error >/dev/null; then
printf 'error\n' > "$status_file_tmp"
else
printf 'ok\n' > "$status_file_tmp"
fi
mv "$status_file_tmp" "$status_file"