Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2015 10:15:02 +0000 (UTC)
From:      Jeremie Le Hen <jlh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285444 - head/etc/defaults
Message-ID:  <201507131015.t6DAF2rV025100@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jlh
Date: Mon Jul 13 10:15:01 2015
New Revision: 285444
URL: https://svnweb.freebsd.org/changeset/base/285444

Log:
  Allow again periodic scripts to be run from command-line.
  
  PR:		188109
  Submitted by:	Jason Unovitch
  MFC after:	1 week

Modified:
  head/etc/defaults/periodic.conf

Modified: head/etc/defaults/periodic.conf
==============================================================================
--- head/etc/defaults/periodic.conf	Mon Jul 13 09:12:05 2015	(r285443)
+++ head/etc/defaults/periodic.conf	Mon Jul 13 10:15:01 2015	(r285444)
@@ -357,8 +357,12 @@ if [ -z "${source_periodic_confs_defined
 			*) return 0 ;;
 			esac
 			;;
+                '')
+                        # Script run manually.
+                        return 0
+                        ;;
 		*)
-			echo "ASSERTION FAILED: Unexpected value for " \
+			echo "ASSERTION FAILED: Unexpected value for" \
 			    "\$PERIODIC: '$PERIODIC'" >&2
 			exit 127
 			;;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507131015.t6DAF2rV025100>