home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / nsfast / install / postremove < prev    next >
Text File  |  1998-08-19  |  1KB  |  46 lines

  1. #!/bin/sh
  2. #
  3. #       @(#) postremove.shinc 12.3 97/11/17 
  4. #
  5. # Copyright (c) 1997 The Santa Cruz Operation, Inc.. All Rights Reserved.
  6. # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE SANTA CRUZ OPERATION INC.
  7. # The copyright notice above does not evidence any actual or intended
  8. # publication of such source code.
  9. ME="`basename $0`"
  10. ISL_FILE="/etc/inst/scripts/postreboot.sh"
  11. SUCCESS=0; FAIL=1; INTR=3
  12. trap "exit $INTR" 2 3 15
  13.  
  14. # location of the packaging information files during this phase of installation
  15. INSTALL_DIR="/var/sadm/pkg/$PKGINST/install/$PKGINST"
  16.  
  17.  
  18. #############################################################################
  19. #
  20. # restart_admin
  21. #
  22. # restart any admin server with the new server to administer
  23. #############################################################################
  24. restart_admin()
  25. {
  26.     # if a server looks like it's running, restart it
  27.     if [ -x /usr/sbin/nsadmin ]; then
  28.         /usr/sbin/nsadmin restart
  29.     fi
  30. }
  31.  
  32.  
  33. #############################################################################
  34. #
  35. # main
  36. #
  37. #############################################################################
  38.  
  39. # stop and restart any running admin server
  40. restart_admin
  41.  
  42. # done
  43. exit $SUCCESS
  44.