]> andersk Git - moira.git/commitdiff
this is what's currently running on SMS
authormar <mar>
Tue, 21 Jun 1988 10:29:44 +0000 (10:29 +0000)
committermar <mar>
Tue, 21 Jun 1988 10:29:44 +0000 (10:29 +0000)
gen/hesiod.sh
gen/nfs.sh

index a8929194280be5570f743aa5480efe993f59dfe3..f3142deb13c357ffba35b96ec8f3659736036b9a 100644 (file)
@@ -1,12 +1,17 @@
 #! /bin/sh
 TARFILE=/tmp/hesiod
-SRC_DIR=/site/_nameserver
+SRC_DIR=/etc/athena/_nameserver
 DEST_DIR=/etc/athena/nameserver
 if [ ! -d $SRC_DIR ]; then
        /bin/rm -f $SRC_DIR
        /bin/mkdir $SRC_DIR
        /bin/chmod 755 $SRC_DIR
 fi
+#if [ ! -d $DEST_DIR ]; then
+#      /bin/rm -f $DEST_DIR
+#      /bin/mkdir $DEST_DIR
+#      /bin/chmod 755 $DEST_DIR
+#fi
 cd $SRC_DIR
 for file in `/bin/tar tf $TARFILE`; do 
        if [ ./ = $file ]; then continue; fi
@@ -17,26 +22,14 @@ for file in `/bin/tar tf $TARFILE`; do
                /bin/rm -f $file
        fi
 done
-
+# The following three lines were changed by WES on 9/10/87.
+# They may not be in the sources.
 /bin/rm -f $TARFILE
 kill -KILL `/bin/cat /etc/named.pid`
 
 csh -fc "unlimit; /etc/named"
 
-while true; do
-       sleep 60
-       if [ -e /tmp/named.success ]
-               exit 0
-       fi
-       if [ -e /tmp/named.failure ]
-               exit 1
-       fi
-       if [ -e /etc/named.pid ]
-               exit 1
-       fi
-done
 
-rm -f $0
 exit
 #
 #      $Source$
index a869c0f1bd43f5d3c88d46e1dac7a55adb07da53..02a79474c02c8df4ba7937eec78432df93218793 100644 (file)
@@ -1,24 +1,39 @@
-TARFILE=/tmp/nfs
-TMPDIR=/tmp/nfs.dir
-if [ ! -d $TMPDIR ]; then
-       /bin/rm -f $TMPDIR
-       /bin/mkdir $TMPDIR
-       /bin/chmod 755 $TMPDIR
-fi
-# cd $TMPDIR; tar xf $TARFILE
-for QFILE in $TMPDIR/\\*; do
-       while :; do
-               read login dir uid gid quota
-               if [ $? != 0 ]; then exit 0; fi
-               path=$dir/$login
-               echo mkdir $path
-               echo chown $uid $path
-               echo chgrp $gid $path
-               echo setquota `expr $QFILE : '[^\]*\(.*\)' \
-| sed 's,\\\\,/,g'` $uid $quota
-       done <$QFILE
-done
-#
-#      $Source$
-#      $Header$
-#
+#!/bin/csh -f
+set path=(/bin /usr/bin /etc /usr/etc )
+set TARFILE=/tmp/nfs
+set TMPDIR=/tmp/nfs.dir
+
+if ( ! -d $TMPDIR ) then
+       rm -f $TMPDIR
+       mkdir $TMPDIR
+       chmod 755 $TMPDIR
+endif
+
+cd $TMPDIR
+tar xf $TARFILE
+if ($status) exit 1
+
+set uchost=`hostname|tr a-z A-Z`.MIT.EDU
+set uchostrev=`echo $uchost | rev`
+
+foreach i ( ${uchost}* )
+       set t1=`echo $i | rev`
+       set dev=`basename $t1 :$uchostrev | rev | sed 's;@;/;g'`
+
+       echo ${uchost}:$dev
+
+       ./install_fs $dev < $i
+end
+
+# build new credentials file.
+rm -f /usr/etc/credentials.new
+cp credentials /usr/etc/credentials.new
+if ($status) exit 1
+
+/usr/etc/mkcred /usr/etc/credentials.new
+if ($status) exit 1
+
+foreach e ( "" .dir .pag)
+       mv /usr/etc/credentials.new$e /usr/etc/credentials$e
+end
+
This page took 0.102621 seconds and 5 git commands to generate.