[BACK]Return to daily CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/daily between version 1.77.6.3 and 1.78

version 1.77.6.3, 2014/05/22 11:27:18 version 1.78, 2011/12/17 12:27:42
Line 10  umask 077
Line 10  umask 077
 if [ -s /etc/daily.conf ]; then  if [ -s /etc/daily.conf ]; then
         . /etc/daily.conf          . /etc/daily.conf
 fi  fi
 if [ -s /etc/pkgpath.conf ]; then  
         . /etc/pkgpath.conf  
 fi  
   
 host="$(hostname)"  host="$(hostname)"
 date="$(date)"  date="$(date)"
 rcvar_manpage='daily.conf(5)'  rcvar_manpage='daily.conf(5)'
   
 pkg_admin=${pkg_admin:-/usr/sbin/pkg_admin}  
 pkg_info=${pkg_info:-/usr/sbin/pkg_info}  
   
 echo "To: ${MAILTO:-root}"  echo "To: ${MAILTO:-root}"
 echo "Subject: $host daily output for $date"  echo "Subject: $host daily output for $date"
 echo ""  echo ""
Line 95  if checkyesno find_core; then
Line 89  if checkyesno find_core; then
         ignfstypes="$(echo $find_core_ignore_fstypes | \          ignfstypes="$(echo $find_core_ignore_fstypes | \
                 sed -e's/\(!*\)\([^[:space:]]\{1,\}\)/-o \1 -fstype \2/g' \                  sed -e's/\(!*\)\([^[:space:]]\{1,\}\)/-o \1 -fstype \2/g' \
                     -e's/^-o //')"                      -e's/^-o //')"
         # Turn "foo bar" into "( -path foo -o -path bar ) -prune -o"  
         # Set ignpaths empty if no find_core_ignore_paths given  
         if [ -n "$find_core_ignore_paths" ]; then  
                 ignpaths="$(printf " -o -path %s" $find_core_ignore_paths)"  
                 ignpaths="( ${ignpaths# -o } ) -prune -o"  
         else  
                 ignpaths=""  
         fi  
         find / \( $ignfstypes \) -prune -o \          find / \( $ignfstypes \) -prune -o \
                 ${ignpaths} \  
                 -name 'lost+found' -prune -o \                  -name 'lost+found' -prune -o \
                 \( -name '*.core' -o -name 'core' \) -type f -print > $TMP                  \( -name '*.core' -o -name 'core' \) -type f -print > $TMP
 #               \( -name '[#,]*' -o -name '.#*' -o -name a.out \  #               \( -name '[#,]*' -o -name '.#*' -o -name a.out \
Line 252  if checkyesno run_fsck; then
Line 237  if checkyesno run_fsck; then
         fsck -n -f ${run_fsck_flags} | grep -v '^\*\* Phase'          fsck -n -f ${run_fsck_flags} | grep -v '^\*\* Phase'
 fi  fi
   
   echo ""
 if checkyesno run_rdist && [ -f /etc/Distfile ]; then  if checkyesno run_rdist && [ -f /etc/Distfile ]; then
         echo ""  
         echo "Running rdist:"          echo "Running rdist:"
         if [ -d /var/log/rdist ]; then          if [ -d /var/log/rdist ]; then
                 logf="$(date +%Y.%b.%d)"                  logf="$(date +%Y.%b.%d)"
Line 263  if checkyesno run_rdist && [ -f /etc/Dis
Line 248  if checkyesno run_rdist && [ -f /etc/Dis
         fi          fi
 fi  fi
   
 if ${pkg_info} ${_compat_K_flag} -q -E '*'; then  if pkg_info ${_compat_K_flag} -q -E '*'; then
         if [ -z "$fetch_pkg_vulnerabilities" ]; then          echo ""
                 echo "fetch_pkg_vulnerabilities is not set in daily.conf(5)."          echo "Fetching package vulnerabilities database:"
                 echo "You should set it to YES to enable vulnerability checks"          if checkyesno fetch_pkg_vulnerabilities; then
                 echo "or set it to NO to get rid of this warning."                  ( umask 022 && pkg_admin ${_compat_K_flag} \
         elif checkyesno fetch_pkg_vulnerabilities; then  
                 echo ""  
                 echo "Fetching package vulnerabilities database:"  
                 ( umask 022 && ${pkg_admin} ${_compat_K_flag} \  
                     fetch-pkg-vulnerabilities -u )                      fetch-pkg-vulnerabilities -u )
           else
                   echo "fetch_pkg_vulnerabilities is set to NO in daily.conf(5)."
                   echo "You should set it to YES to enable vulnerability checks."
         fi          fi
 fi  fi
   
Line 306  if checkyesno run_skeyaudit; then
Line 290  if checkyesno run_skeyaudit; then
         fi          fi
 fi  fi
   
 if checkyesno run_makemandb; then  
         if [ -f /etc/man.conf -a -x /usr/sbin/makemandb ]; then  
                 echo ""  
                 echo "Updating man page index:"  
                 (umask 022; nice -n 5 /usr/sbin/makemandb -Q)  
         fi  
 fi  
   
 if [ -f /etc/daily.local ]; then  if [ -f /etc/daily.local ]; then
         ( . /etc/daily.local ) > $TMP 2>&1          ( . /etc/daily.local ) > $TMP 2>&1
         if [ -s $TMP ] ; then          if [ -s $TMP ] ; then

Legend:
Removed from v.1.77.6.3  
changed lines
  Added in v.1.78

CVSweb <webmaster@jp.NetBSD.org>