From 8e6405e403035bb6bad47a6f8d83e3ba026ca49f Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 24 Apr 2000 14:01:58 +0000 Subject: Make update.sh accept command line options that are passed to CVSup. Now users can schedule CVSup e.g. as follows: 45 0-6,8-23 * * * root nice -15 /usr/local/etc/cvsup/update.sh -s 45 7 * * * root nice -15 /usr/local/etc/cvsup/update.sh Approved by: John Polstra --- net/cvsup-mirror/files/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net/cvsup-mirror') diff --git a/net/cvsup-mirror/files/update.sh b/net/cvsup-mirror/files/update.sh index 1f0c4dbe6880..5a49d0faf4b1 100644 --- a/net/cvsup-mirror/files/update.sh +++ b/net/cvsup-mirror/files/update.sh @@ -5,6 +5,7 @@ if ! export PREFIX=$(expr $0 : "\(/.*\)/etc/cvsup/update\.sh\$"); then exit 1 fi +export CVSUP_ARGS="$*" export PATH=/bin:/usr/bin:${PREFIX}/bin lock=/var/spool/lock/cvsup.lock @@ -42,7 +43,7 @@ colldir=sup.client startup=${PREFIX}/etc/rc.d eval chome=~${cuser} cmd="env HOME=${chome} cvsup" -options="-1gL 1 -b ${base} -c ${colldir}" +options="-1gL 1 -b ${base} -c ${colldir} ${CVSUP_ARGS}" umask 2 ok=yes -- cgit v1.2.3