Annotation of researchv10no/cmd/netnews/src/install.v7, revision 1.1.1.1

1.1       root        1: : '%W% %G%'
                      2: if test "$#" != 4
                      3: then
                      4:        echo "usage: $0 spooldir libdir nuser ngroup"
                      5:        exit 1
                      6: fi
                      7: SPOOLDIR=$1
                      8: LIBDIR=$2
                      9: NEWSUSR=$3
                     10: NEWSGRP=$4
                     11: 
                     12: 
                     13: : Get name of local system
                     14: SYSNAME=`uuname -l`
                     15: if test "$SYSNAME" = ""
                     16: then
                     17:        echo "$0: Cannot get system name"
                     18:        exit 1
                     19: fi
                     20: 
                     21: : Ensure SPOOLDIR exists
                     22: if test ! -d $SPOOLDIR
                     23: then
                     24:        mkdir $SPOOLDIR
                     25: fi
                     26: chmod 777 $SPOOLDIR
                     27: chown $NEWSUSR $SPOOLDIR
                     28: chgrp $NEWSGRP $SPOOLDIR
                     29: 
                     30: : Ensure LIBDIR exists
                     31: if test ! -d $LIBDIR
                     32: then
                     33:        mkdir $LIBDIR
                     34: fi
                     35: chmod 777 $LIBDIR
                     36: chown $NEWSUSR $LIBDIR
                     37: chgrp $NEWSGRP $LIBDIR
                     38: 
                     39: : Ensure certain files in LIBDIR exist
                     40: touch $LIBDIR/history $LIBDIR/active $LIBDIR/log $LIBDIR/users
                     41: touch $LIBDIR/history.dir $LIBDIR/history.pag
                     42: chmod 666 $LIBDIR/users
                     43: 
                     44: : If no sys file, make one.
                     45: if test ! -f $LIBDIR/sys
                     46: then
                     47: echo making a $LIBDIR/sys file to link you to oopsvax
                     48: echo you must change oopsvax to your news feed
                     49:        cat > $LIBDIR/sys << EOF
                     50: $SYSNAME:net.all,fa.all,to.$SYSNAME::
                     51: oopsvax:net.all,fa.all,to.oopsvax::
                     52: EOF
                     53: fi
                     54: 
                     55: : If no seq file, make one.
                     56: if test ! -f $LIBDIR/seq
                     57: then
                     58:        echo '100' >$LIBDIR/seq
                     59: fi
                     60: 
                     61: : If no .ngfile, make one.
                     62: if test ! -f $LIBDIR/ngfile
                     63: then
                     64:        cat > $LIBDIR/ngfile << EOF
                     65: all
                     66: !fa.all
                     67: EOF
                     68: fi
                     69: 
                     70: chown $NEWSUSR $LIBDIR/[a-z]*
                     71: chgrp $NEWSGRP $LIBDIR/[a-z]*
                     72: 
                     73: echo reminder: uux must permit rnews if running over uucp

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.