From f3e285ba7d9ba652ea61d3aca42e6b649ae9e981 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Fri, 23 Jun 2000 01:18:31 +0000 Subject: Introduce /etc/defaults/periodic.conf, similar in concept to rc.conf. The only change in the default functionality should be that the output reports are slightly more verbose WRT files deleted. Not objected to by: freebsd-arch --- etc/periodic/weekly/340.noid | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'etc/periodic/weekly/340.noid') diff --git a/etc/periodic/weekly/340.noid b/etc/periodic/weekly/340.noid index 8a94924b6703..7ad71ea07f57 100644 --- a/etc/periodic/weekly/340.noid +++ b/etc/periodic/weekly/340.noid @@ -1,14 +1,21 @@ #!/bin/sh - # # $FreeBSD$ +# -exit 0 # do not run by default - -echo "" -echo "Check for files belongs to an unknown user or unknown group:" - -# directories to be verified -: ${NOIDSEARCHPATHS="/"} +# If there is a global system configuration file, suck it in. +# +if [ -r /etc/defaults/periodic.conf ] +then + . /etc/defaults/periodic.conf + source_periodic_confs +fi -find -H $NOIDSEARCHPATHS -fstype local \( -nogroup -or -nouser \) -print +case "$weekly_noid_enable" in + [Yy][Ee][Ss]) + echo "" + echo "Check for files with an unknown user or group:" + find -H ${weekly_noid_dirs:-/} -fstype local \ + \( -nogroup -o -nouser \) -print | sed 's/^/ /';; +esac -- cgit v1.2.3