Changeset 629


Ignore:
Timestamp:
Feb 3, 2008, 7:18:04 AM (16 years ago)
Author:
geofft
Message:
Give an error message if admof is about to fail because scripts cannot run fs
la. We should no longer need the lower check for system:anyuser l.
Resolves [help.mit.edu #564492].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/bin/signup-minimal

    r576 r629  
    5555fi
    5656
     57ans=`$WGET -q -O- "http://scripts.mit.edu/~signup/fsla.php/mit/$lname"`
     58if [ "$ans" != "0" ]; then
     59  echo
     60  echo "ERROR:"
     61  echo "The scripts servers cannot verify the permissions of the locker <$lname>."
     62  echo "Try running \"fs sa /mit/$lname daemon.scripts l\" (with a lowercase"
     63  echo "L at the end) and then try again. Contact scripts@mit.edu if you are"
     64  echo "unable to solve the problem."
     65  exit 1
     66fi
     67
    5768principal=`klist -5 | sed -n 's/^Default principal: // p'`
    5869ans=`$WGET -q -O- "http://scripts.mit.edu/~signup/admof.php/$lname/$principal"`
     
    6374  echo "It appears as though you are not an administrator of the locker <$lname>."
    6475  echo "Try running \"fs sa /mit/$lname $afsuser all\" and starting over."
    65   echo "Contact scripts@mit.edu if you are unable to solve the problem."
    66   exit 1
    67 fi
    68 
    69 ans=`fs la "/mit/$lname" | grep '^  system:a[nyuth]*user .*l'`
    70 if [ -z "$ans" ]; then
    71   echo
    72   echo "ERROR:"
    73   echo "It appears as though the locker <$lname> is not listable by system:anyuser."
    74   echo "You might want to run \"fs sa /mit/$lname system:anyuser l\""
    75   echo "(that's a lowercase L rather than a one) and then try again."
    7676  echo "Contact scripts@mit.edu if you are unable to solve the problem."
    7777  exit 1
Note: See TracChangeset for help on using the changeset viewer.