tibber-influx/start.sh
2024-08-17 22:55:07 +02:00

11 lines
277 B
Bash

#!/bin/bash
printenv > /app/env
# Start the cron service
service cron start
# Run your main application script (pulse.py) in the background
python3 /app/pulse.py &
# Keep the container running and output both cron logs and pulse.py output
tail -f /var/log/cron.log &
wait -n