docker-dolibarr icon indicating copy to clipboard operation
docker-dolibarr copied to clipboard

Fix cron: add cron task only once and start cron service

Open YannickR26 opened this issue 3 years ago • 4 comments

Fix:

  • the cron service was not started at startup
  • allows to leave the environment variable DOLI_CRON at 1

YannickR26 avatar Aug 25 '22 09:08 YannickR26

If you change DOLI_CRON_KEY or DOLI_CRON_USER, the cron task will not be updated.

tuxgasy avatar Aug 27 '22 06:08 tuxgasy

Yes, its true, we can update the cron task at each run if you prefer ?

YannickR26 avatar Aug 27 '22 20:08 YannickR26

Currently, the cron file is already regenerated at each run.

tuxgasy avatar Aug 29 '22 07:08 tuxgasy

ok, I updated the docker-run.sh file to check the environment variables and create the cron job at each run.

YannickR26 avatar Aug 29 '22 09:08 YannickR26