Deleted Added
full compact
periodic.conf (256284) periodic.conf (257361)
1#!/bin/sh
2#
3# This is defaults/periodic.conf - a file full of useful variables that
4# you can set to change the default behaviour of periodic jobs on your
5# system. You should not edit this file! Put any overrides into one of the
6# $periodic_conf_files instead and you will be able to update these defaults
7# later without spamming your local configuration information.
8#
9# The $periodic_conf_files files should only contain values which override
10# values set in this file. This eases the upgrade path when defaults
11# are changed and new features are added.
12#
13# For a more detailed explanation of all the periodic.conf variables, please
14# refer to the periodic.conf(5) manual page.
15#
1#!/bin/sh
2#
3# This is defaults/periodic.conf - a file full of useful variables that
4# you can set to change the default behaviour of periodic jobs on your
5# system. You should not edit this file! Put any overrides into one of the
6# $periodic_conf_files instead and you will be able to update these defaults
7# later without spamming your local configuration information.
8#
9# The $periodic_conf_files files should only contain values which override
10# values set in this file. This eases the upgrade path when defaults
11# are changed and new features are added.
12#
13# For a more detailed explanation of all the periodic.conf variables, please
14# refer to the periodic.conf(5) manual page.
15#
16# $FreeBSD: head/etc/defaults/periodic.conf 256284 2013-10-10 18:05:13Z gjb $
16# $FreeBSD: head/etc/defaults/periodic.conf 257361 2013-10-29 20:35:35Z jlh $
17#
18
19# What files override these defaults ?
20periodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local"
21
22# periodic script dirs
23local_periodic="/usr/local/etc/periodic"
24

--- 289 unchanged lines hidden (view full) ---

314if [ -z "${source_periodic_confs_defined}" ]; then
315 source_periodic_confs_defined=yes
316
317 # Compatibility with old daily variable names.
318 # They can be removed in stable/11.
319 security_daily_compat_var() {
320 local var=$1 dailyvar value
321
17#
18
19# What files override these defaults ?
20periodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local"
21
22# periodic script dirs
23local_periodic="/usr/local/etc/periodic"
24

--- 289 unchanged lines hidden (view full) ---

314if [ -z "${source_periodic_confs_defined}" ]; then
315 source_periodic_confs_defined=yes
316
317 # Compatibility with old daily variable names.
318 # They can be removed in stable/11.
319 security_daily_compat_var() {
320 local var=$1 dailyvar value
321
322 dailyvar=daily_status_security${#status_security}
322 dailyvar=daily_status_security${var#security_status}
323 periodvar=${var%enable}period
324 eval value=\"\$$dailyvar\"
325 [ -z "$value" ] && return
326 echo "Warning: Variable \$$dailyvar is deprecated," \
327 "use \$$var instead." >&2
328 case "$value" in
329 [Yy][Ee][Ss])
330 $var=YES
331 $periodvar=daily
332 ;;
333 *)
323 periodvar=${var%enable}period
324 eval value=\"\$$dailyvar\"
325 [ -z "$value" ] && return
326 echo "Warning: Variable \$$dailyvar is deprecated," \
327 "use \$$var instead." >&2
328 case "$value" in
329 [Yy][Ee][Ss])
330 $var=YES
331 $periodvar=daily
332 ;;
333 *)
334 $var="$value"
334 eval $var=\"$value\"
335 ;;
336 esac
337 }
338
339 check_yesno_period() {
340 local var="$1" periodvar value period
341
342 eval value=\"\$$var\"

--- 56 unchanged lines hidden ---
335 ;;
336 esac
337 }
338
339 check_yesno_period() {
340 local var="$1" periodvar value period
341
342 eval value=\"\$$var\"

--- 56 unchanged lines hidden ---