mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
system: cron.d directories starting with FreeBSD 11.1
It might be a good idea to move cron to the MVC system completely, apart from the auto-write logic we could make this a priv-sep job very easily now.
This commit is contained in:
parent
72d5e865cb
commit
a169aeb580
@ -1269,6 +1269,10 @@ function system_cron_configure($verbose = false, $defer = false)
|
||||
}
|
||||
|
||||
$crontab_contents = "# DO NOT EDIT THIS FILE -- OPNsense auto-generated file\n";
|
||||
$crontab_contents .= "#\n";
|
||||
$crontab_contents .= "# User-defined crontab files can be loaded via /etc/cron.d\n";
|
||||
$crontab_contents .= "# or /usr/local/etc/cron.d and follow the same format as\n";
|
||||
$crontab_contents .= "# /etc/crontab, see the crontab(5) manual page.\n";
|
||||
$crontab_contents .= "SHELL=/bin/sh\n";
|
||||
$crontab_contents .= "PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin\n";
|
||||
$crontab_contents .= "#minute\thour\tmday\tmonth\twday\tcommand\n";
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
# DO NOT EDIT THIS FILE -- OPNsense auto-generated file
|
||||
#
|
||||
# User-defined crontab files can be loaded via /etc/cron.d
|
||||
# or /usr/local/etc/cron.d and follow the same format as
|
||||
# /etc/crontab, see the crontab(5) manual page.
|
||||
SHELL=/bin/sh
|
||||
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
||||
{% if helpers.exists('OPNsense.cron.jobs') %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user