diff --git a/modules/cron/docs/cron.md b/modules/cron/docs/cron.md index 586898ab31675aca6388efee447b95782426128e..43066cfae5cd15c0b601f6a924f1e95917ecf737 100644 --- a/modules/cron/docs/cron.md +++ b/modules/cron/docs/cron.md @@ -66,9 +66,9 @@ Now, copy the cron configuration suggested on that page: ```text # Run cron [daily] -02 0 * * * curl --silent "https://YOUR_SERVER/simplesaml/module.php/cron/cron.php?key=RANDOM_KEY&tag=daily" > /dev/null 2>&1 +02 0 * * * curl -sS "https://YOUR_SERVER/simplesaml/module.php/cron/run/daily/RANDOM_KEY" # Run cron [hourly] -01 * * * * curl --silent "https://YOUR_SERVER/simplesaml/module.php/cron/cron.php?key=RANDOM_KEY&tag=hourly" > /dev/null 2>&1 +01 * * * * curl -sS "https://YOUR_SERVER/simplesaml/module.php/cron/run/hourly/RANDOM_KEY" ``` Finally, add it to your crontab by going back to the terminal, and editing with: diff --git a/modules/cron/templates/croninfo.twig b/modules/cron/templates/croninfo.twig index f7f5d9b813cfb1829fc425a4f603bac2784958d2..45194f63f427ff4826501b4b32e83dbdbc30d59b 100644 --- a/modules/cron/templates/croninfo.twig +++ b/modules/cron/templates/croninfo.twig @@ -14,7 +14,7 @@ <code id="cronlist"> <br /> {%- for url in urls -%} - # {{ 'Run cron:'|trans }} [{{ url.tag }}]<br />{{ url.int }} curl --silent "{{ url.exec_href }}" > /dev/null 2>&1<br /><br /> + # {{ 'Run cron:'|trans }} [{{ url.tag }}]<br />{{ url.int }} curl -sS "{{ url.exec_href }}"<br /><br /> {%- endfor -%} <br /> </code>