Hello,
I am trying to add two cron job tasks to my dockerfile. If I add one (1 line) everything works. If I want to add more I sometimes encounter problems. What is the correct way to add multiple cron jobs with balena when deploying? One should check every 5 minutes, the other one run once a day at 2:00 am.
Thanks!
#CRON JOB
RUN (crontab -l ; echo “*/5 * * * * /usr/src/app/cron_check.sh”) | sort - | uniq - | crontab -
RUN (crontab -l ; echo “0 2 * * * /usr/src/app/cron_restart.sh”) | sort - | uniq - | crontab -