Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.132 2001/01/13 23:51:16 per Exp $ + # $Id: start,v 1.133 2001/03/27 18:20:34 mast Exp $      ### If --silent-start is given as the first argument,   ### nothing will be printed to stdout by the script.      if [ "x$1" = "x--silent-start" ]   then    SILENT_START="y"    shift   fi   
Roxen.git/server/start:56:    num=`echo $num`    if [ x"$num" = x1 ] ; then    gargs='-a'    fi    ugid=`grep $gargs "='User'>" $DIR/Global_Variables 2>/dev/null\    | sed -e 's/.*<str>//' -e 's,</str>.*,,'`    if [ ! x$ugid = x ] ; then    dp "Doing uid change to $ugid"    oifs="$IFS";IFS=':';set $ugid;IFS="$oifs"    change_owner $1 $2 $DIR $VARDIR $LOGDIR -  ok=`ls -lgd $a 2>/dev/null | grep $2 |wc -l` +  ok=`ls -lgd . 2>/dev/null | grep $2 |wc -l`    ok=`echo $ok`    if [ "x$ok" = x1 ] ; then    dp ". is already readable by $2"    else    chgrp -R "$2" .    chmod -R g+w .    fi    fi    fi   }