]> andersk Git - moira.git/blobdiff - gen/nfs.sh
moved admin_call
[moira.git] / gen / nfs.sh
index 9c4c11706aeebddce363c8b98a2e5bc4909ad8d7..166223a3060ae2e735408f34c9ae09a2525f51a8 100644 (file)
@@ -35,17 +35,10 @@ set uchost=`/bin/hostname | tr a-z A-Z`.MIT.EDU
 
 cd $SRC_DIR
 
-# Only files starting with $uchost, install_, and list- are needed.
-# The files starting with list- are needed because the credentials
-# files are hard links to them.  Tar will fail if they are not extracted.
-foreach file (`/bin/tar tf $TARFILE | awk '{print $1}'`)
-   if (($file =~ ./${uchost}*) || \
-       ($file =~ ./install_*) || \
-       ($file =~ ./list-*)) then
-      tar xf $TARFILE $file
-      if ($status) exit $SMS_TARERR
-   endif
-end
+# Just extract everything since some of what we need exists as
+# hardlinks and tar doesn't deal well with extracting them in isolation.
+tar xf $TARFILE
+if ($status) exit $SMS_TARERR
 
 foreach type (dirs quotas)
    echo "Installing ${type}:"
This page took 0.045547 seconds and 4 git commands to generate.