Commit 759f2431 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Unify on more modern ron version of cvsup code. Also convert the

supfiles into .in files to be run through configure.
parent fafc571b
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# All rights reserved.
#
. /etc/emulab/paths.sh
LOG=$LOGDIR/cvsup.log
CVSUP=/usr/local/bin/cvsup
# So that cvsup finds the auth file!
export HOME=/root
if [ -f $ETCDIR/supfile -a -x $CVSUP ]; then
#
# Redirect to log file on remote nodes.
#
if [ -e $ETCDIR/isrem ]; then
exec >>${LOG} 2>&1
fi
echo -n "Checking for file updates at "
date
# Do nothing.
if [ -e $ETCDIR/nosup ]; then
echo "CVSUP is currently turned off ..."
exit 0
fi
set -- `$BINDIR/tmcc bossinfo`
supserver=$1
$CVSUP -h $supserver -e -1 -g -L 1 -a $ETCDIR/supfile
#
# Per machine cvsup based on nodeid, but only on remote nodes.
#
if [ ! -e $ETCDIR/isrem ]; then
exit 0
fi
set -- `$BINDIR/tmcc nodeid`
case $? in
0)
if [ "$1" != "" ]; then
rm -f /tmp/sup.$$
cat $ETCDIR/supfile | \
sed -e "s/release=[a-zA-Z0-9]*/release=$1/" >/tmp/sup.$$
$CVSUP -h $supserver -e -1 -g -L 1 -a /tmp/sup.$$
rm -f /tmp/sup.$$
fi
;;
esac
fi
exit 0;
......@@ -2,4 +2,4 @@
# When the release is bumped, be sure to remove sup/sup/FBSD45-STD/checkouts
# on the client.
#
FBSD45-STD host=boss.emulab.net base=/etc/testbed/sup prefix=/ preserve release=current
FBSD47-STD base=@CLIENT_VARDIR@ prefix=/ preserve release=current
......@@ -2,4 +2,4 @@
# When the release is bumped, be sure to remove sup/sup/RHL71-STD/checkouts
# on the client.
#
RHL71-STD host=boss.emulab.net base=/etc/rc.d/testbed/sup prefix=/ preserve release=current
RHL71-STD base=@CLIENT_VARDIR@ prefix=/ preserve release=newclient
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# All rights reserved.
#
DIR=/usr/local/etc/emulab
LOG=/var/tmp/cvsup.log
CVSUP=/usr/local/bin/cvsup
SERVER=cvsup.emulab.net
# So that it finds the auth file!
export HOME=$DIR
exec >>${LOG} 2>&1
if [ -f $DIR/supfile -a -x $CVSUP ]; then
echo -n "Checking for file updates at "
date
set -- `$DIR/tmcc bossinfo`
$CVSUP -h $1 -e -1 -g -L 1 -a $DIR/supfile
fi
exit 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment