Annotation of researchv10no/cmd/netnews/src/install.usg, revision 1.1

1.1     ! root        1: : '@(#)install.usg     2.6     3/3/83'
        !             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=`uname -n`
        !            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: chmod 666 $LIBDIR/users
        !            42: 
        !            43: : If no sys file, make one.
        !            44: if test ! -f $LIBDIR/sys
        !            45: then
        !            46: echo making a $LIBDIR/sys file to link you to oopsvax
        !            47: echo you must change oopsvax to your news feed
        !            48:        cat > $LIBDIR/sys << EOF
        !            49: $SYSNAME:net.all,fa.all,to.$SYSNAME::
        !            50: oopsvax:net.all,fa.all,to.oopsvax::
        !            51: EOF
        !            52: fi
        !            53: 
        !            54: : If no seq file, make one.
        !            55: if test ! -f $LIBDIR/seq
        !            56: then
        !            57:        echo '100' >$LIBDIR/seq
        !            58: fi
        !            59: 
        !            60: : If no .ngfile, make one.
        !            61: if test ! -f $LIBDIR/ngfile
        !            62: then
        !            63:        cat > $LIBDIR/ngfile << EOF
        !            64: all
        !            65: !fa.all
        !            66: EOF
        !            67: fi
        !            68: 
        !            69: chown $NEWSUSR $LIBDIR/[a-z]*
        !            70: chgrp $NEWSGRP $LIBDIR/[a-z]*
        !            71: 
        !            72: 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.