]> andersk Git - moira.git/commitdiff
*** empty log message ***
authorpoto <poto>
Sat, 5 Sep 1987 18:32:18 +0000 (18:32 +0000)
committerpoto <poto>
Sat, 5 Sep 1987 18:32:18 +0000 (18:32 +0000)
gen/nfs.sh

index 99ec36e3220550b1b0f96d8a42a31e4d37854792..a869c0f1bd43f5d3c88d46e1dac7a55adb07da53 100644 (file)
@@ -1,8 +1,23 @@
-mkdir /tmp/nfs.dir
-cd /tmp/nfs.dir
-tar xf /tmp/nfs
-chmod 775 /tmp/nfs.dir
-exit
+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$
This page took 0.090975 seconds and 5 git commands to generate.