diff options
author | knu <knu@FreeBSD.org> | 2000-04-24 22:01:58 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-04-24 22:01:58 +0800 |
commit | 664955206d005563bbbf0b840c34aed9ec354844 (patch) | |
tree | cdd27b9213e7d9ea08f7ffd0653abda3183f0917 /net | |
parent | 2d34c235f72fe3015ca8fa7171d17743520b407f (diff) | |
download | freebsd-ports-gnome-664955206d005563bbbf0b840c34aed9ec354844.tar.gz freebsd-ports-gnome-664955206d005563bbbf0b840c34aed9ec354844.tar.zst freebsd-ports-gnome-664955206d005563bbbf0b840c34aed9ec354844.zip |
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 <jdp@polstra.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/cvsup-mirror/files/update.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |