home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 4.0 PR1 / NeXT_NEXTSTEP_4.0_PR1_(beta).rar / Openstep4-Pr1User.iso / Upgrader.app / Default.upgrade / FixUsers next >
Text File  |  1994-09-01  |  632b  |  24 lines

  1. #!/bin/csh -f
  2. #
  3. # Called by Upgrader post-processing script.  Takes user names on 
  4. # standard input and creates info directories for them.  The single
  5. # argument is the tag of a domain on the local machine in which to 
  6. # create the directories.
  7.  
  8. set tag = $1
  9. set nusers = 0
  10.  
  11. while (1)
  12.     set user = $<
  13.     if ($user == "") then
  14.     echo $nusers
  15.     exit 0
  16.     endif
  17.     niutil -list -t localhost/${tag} /users/${user}/info >& /dev/null
  18.     if ($status != 0) then
  19.     niutil -create -t localhost/${tag} /users/${user}/info
  20.     niutil -createprop -t localhost/${tag} /users/${user}/info _writers ${user}
  21.     endif
  22.     @ nusers = $nusers + 1
  23. end
  24.