Ignore:
Timestamp:
Jul 10, 2008, 5:52:58 AM (14 years ago)
Author:
geofft
Message:
Sleep for 10 seconds after creating a new account to let nscd's cache flush.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/bin/signup-minimal

    r733 r776  
    9191rmdir "/mit/$lname/.scripts-signup"
    9292
     93if [ "$ans" = "done" ]; then
     94  # nscd caches account nonexistence with a 5-second TTL.
     95  # (LDAP updates are more or less instant.)
     96  # Somehow, the server can wait up to 10 seconds...
     97  echo "Creating scripts.mit.edu account for $lname..."
     98  sleep 10
     99fi
     100
    93101if [ "$ans" != "done" ] && [ "$ans" != "username already taken" ]; then
    94102  echo "ERROR:"
Note: See TracChangeset for help on using the changeset viewer.