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:
Franco Fichtner 2017-08-20 19:56:23 +02:00
parent 72d5e865cb
commit a169aeb580
2 changed files with 8 additions and 0 deletions

View File

@ -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";

View File

@ -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') %}