Commit 15b8b918 authored by Franco Fichtner's avatar Franco Fichtner

cron: honour disabled flag

parent f34f42d3
...@@ -4,7 +4,9 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin ...@@ -4,7 +4,9 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
{% if helpers.exists('OPNsense.cron.jobs') %} {% if helpers.exists('OPNsense.cron.jobs') %}
#minute hour mday month wday command #minute hour mday month wday command
{% for job in helpers.toList('OPNsense.cron.jobs.job') %} {% for job in helpers.toList('OPNsense.cron.jobs.job') %}
{% if job.enabled|default('0') == '1' %}
# Origin/Description: {{job.origin}}/{{job.description}} # Origin/Description: {{job.origin}}/{{job.description}}
{{job.minutes}} {{job.hours}} {{job.days}} {{job.months}} {{job.weekdays}} /usr/local/sbin/configctl {{job.command}} {{job.parameter}} {{job.minutes}} {{job.hours}} {{job.days}} {{job.months}} {{job.weekdays}} /usr/local/sbin/configctl {{job.command}} {{job.parameter}}
{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment