Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.220 2004/05/14 18:31:39 grubba Exp $ + # $Id: start,v 1.221 2004/08/11 15:18:46 grubba 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      check_owner() {
Roxen.git/server/start:19:    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"    if [ ! "x$2" = x ]; then -  ok=`ls -lgd . 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 "The server directory is already readable by group $2"    else -  +  ok=`ls -ngd . 2>/dev/null | grep "$2" |wc -l` +  ok=`echo $ok` +  if [ "x$ok" = x1 ] ; then +  dp "The server directory is already readable by group $2" +  else    chgrp -R "$2" .    chmod -R g+r .    fi    fi -  +  fi    change_owner "$1" "$2" "$DIR" "$VARDIR" "$LOGDIR"    fi    fi   }         # Breaks on linux when using symlinks.   dn="`dirname "$0"`"   case "$dn" in    ""|".")