Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 23, 2026

Diff for scripts/shell/access/access.sh between version 1.3 and 1.4

version 1.3, 2002/06/12 11:38:06 version 1.4, 2002/06/21 14:20:38
Line 87  ACTION="$1"; shift
Line 87  ACTION="$1"; shift
 PARAM="$*" ; shift  PARAM="$*" ; shift
   
 if [ ! -r $CONFIG ]; then  if [ ! -r $CONFIG ]; then
         echo "File '$CONFIG' doesn't exist or isn't readable!" > /dev/stderr          echo "Config file '$CONFIG' doesn't exist or isn't readable." > /dev/stderr
         exit -1;          exit -1;
 fi  fi
   
Line 95  first_order="` awk '/^ORDER:/ { print $2
Line 95  first_order="` awk '/^ORDER:/ { print $2
 second_order="`awk '/^ORDER:/ { print $3; }' $CONFIG`"  second_order="`awk '/^ORDER:/ { print $3; }' $CONFIG`"
   
 if [ "x$first_order" = "x" -o "x$second_order" = "x" ]; then  if [ "x$first_order" = "x" -o "x$second_order" = "x" ]; then
         echo "Empty orders!"          echo "Empty orders.";
         echo "Please set 'ORDER: ' to apropiate value in your $CONFIG config file!" > /dev/stderr          echo "Please set 'ORDER: ' to appropriate value in your '$CONFIG' config file." \
                   > /dev/stderr;
         exit -1;          exit -1;
 fi  fi
   
Line 106  else
Line 107  else
         if [ "x$first_order" = "xdeny" ]; then          if [ "x$first_order" = "xdeny" ]; then
                 check $CONFIG $USER $ACTION $PARAM                  check $CONFIG $USER $ACTION $PARAM
         else          else
                 echo "Bad order $first_order!"                  echo "Bad order '$first_order'."
                 exit -1;                  exit -1;
         fi          fi
 fi  fi

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top