Skip to content
Snippets Groups Projects
Commit 7e73f19d authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Update url in docs for modern paths and do not silence all curl output

In principle the cron task should only output on error which you
want to know about. Add curl -s to disable curl progressbar but -S
to do show any http errors that occurred.
parent 62ee6349
No related branches found
No related tags found
No related merge requests found
...@@ -66,9 +66,9 @@ Now, copy the cron configuration suggested on that page: ...@@ -66,9 +66,9 @@ Now, copy the cron configuration suggested on that page:
```text ```text
# Run cron [daily] # 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] # 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: Finally, add it to your crontab by going back to the terminal, and editing with:
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<code id="cronlist"> <code id="cronlist">
<br /> <br />
{%- for url in urls -%} {%- for url in urls -%}
# {{ 'Run cron:'|trans }} [{{ url.tag }}]<br />{{ url.int }} curl --silent "{{ url.exec_href }}" > /dev/null 2>&amp;1<br /><br /> # {{ 'Run cron:'|trans }} [{{ url.tag }}]<br />{{ url.int }} curl -sS "{{ url.exec_href }}"<br /><br />
{%- endfor -%} {%- endfor -%}
<br /> <br />
</code> </code>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment