Changeset 502 for locker/bin


Ignore:
Timestamp:
Oct 18, 2007, 9:31:46 PM (15 years ago)
Author:
andersk
Message:
Check for successful response from signup backend.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/bin/signup-minimal

    r463 r502  
    5555    echo "Try running \"fs sa /mit/$lname $USER all\" and starting over."
    5656    echo "Contact scripts@mit.edu if you are unable to solve the problem."
    57     exit 0
     57    exit 1
    5858  fi
    5959fi
     
    6565  echo "ERROR:"
    6666  echo "Cannot find locker <$lname>."
    67   exit 0
     67  exit 1
    6868fi
    6969
     
    7676  echo "(that's a lowercase L rather than a one) and then try again."
    7777  echo "Contact scripts@mit.edu if you are unable to solve the problem."
    78   exit 0
     78  exit 1
    7979fi
    8080
     
    8686  echo "It appears as though you do not have write access to the locker <$lname>."
    8787  echo "Contact scripts@mit.edu if you are unable to solve the problem."
    88   exit 0
     88  exit 1
    8989fi
    9090
     
    9595fi
    9696
    97 $WGET -q -O/dev/null "http://scripts.mit.edu/~signup/$lname"
     97ans=`$WGET -q -O- "http://scripts.mit.edu/~signup/$lname"`
    9898rmdir "/mit/$lname/.scripts-signup"
     99
     100if [ "$ans" != "done" ] && [ "$ans" != "username already taken" ]; then
     101  echo "ERROR:"
     102  echo "Signup reported the following error: \"$ans\"."
     103  echo "Contact scripts@mit.edu for assistance."
     104  exit 1
     105fi
    99106
    100107success() {
Note: See TracChangeset for help on using the changeset viewer.