Add optional argument to control whether to authenticate using a
authorChris Hanson <org/chris-hanson/cph>
Wed, 3 Sep 2008 04:10:34 +0000 (04:10 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 3 Sep 2008 04:10:34 +0000 (04:10 +0000)
keytab (needed for cron access).

etc/update-rcs-log

index 33ee30d23d1aa8cce8ef6527150443bdc8541388..354b9af1497acbf74b21776091b5436ff97d1b45 100755 (executable)
@@ -15,8 +15,10 @@ if [ -z "${CVS2CL}" ]; then
     exit 1
 fi
 
-#kinit -k -t /home/cph/cron.keytab cph/cron
-#aklog
+if [ -n "${1}" ]; then
+    kinit -k -t /home/${1}/cron.keytab ${1}/cron
+    aklog
+fi
 
 COMMON="--revisions --usermap /scheme/v7/src/etc/usermap --domain zurich.csail.mit.edu --stdout --no-wrap --separate-header --window 3600"
 GOPTS_SCHEME="-d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/mit-scheme"