Changeset 576
- Timestamp:
- Jan 5, 2008, 12:43:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
locker/bin/signup-minimal
r575 r576 48 48 attach "$lname" 2>/dev/null 49 49 50 if [ "$lname" != "$USER" ]; then51 ans=`$WGET -q -O- "http://scripts.mit.edu/~signup/admof.php/$lname/$USER@ATHENA.MIT.EDU"`52 if [ "$ans" != "yes" ]; then53 echo54 echo "ERROR:"55 echo "It appears as though you are not an administrator of the locker <$lname>."56 echo "Try running \"fs sa /mit/$lname $USER all\" and starting over."57 echo "Contact scripts@mit.edu if you are unable to solve the problem."58 exit 159 fi60 fi61 62 attach "$lname" 2>/dev/null63 64 50 if [ ! -d "/mit/$lname" ]; then 65 51 echo 66 52 echo "ERROR:" 67 53 echo "Cannot find locker <$lname>." 54 exit 1 55 fi 56 57 principal=`klist -5 | sed -n 's/^Default principal: // p'` 58 ans=`$WGET -q -O- "http://scripts.mit.edu/~signup/admof.php/$lname/$principal"` 59 if [ "$ans" != "yes" ]; then 60 afsuser=`echo "$principal" | sed 's/@ATHENA.MIT.EDU$//'` 61 echo 62 echo "ERROR:" 63 echo "It appears as though you are not an administrator of the locker <$lname>." 64 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." 68 66 exit 1 69 67 fi
Note: See TracChangeset
for help on using the changeset viewer.