home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / scohelp / install / postinstall < prev    next >
Text File  |  1998-08-19  |  803b  |  39 lines

  1. #!/bin/sh
  2. # @(#) postinstall 15.4
  3.  
  4. #
  5. # postinstall script for scohelp
  6. #    ---Add a default contents page for scohelp.
  7. #    ---Start scohelp daemon after install scohelp  
  8. #
  9.  
  10. CONTS_FILE=/usr/lib/scohelp/en_US.ISO8859-1/CONTENTS.html
  11.  
  12. if [ ! -f $CONTS_FILE ]
  13. then
  14. echo "<H1> Welcome to SCOhelp! </H1> No documentation is installed. Install one of the documentation packages to view online documentation." > $CONTS_FILE
  15.  
  16. fi
  17.  
  18. # Configure the default views
  19. #
  20. LOGFILE=/var/adm/log/scohelpins.$$.log
  21. CONFIG=/usr/man/bin/config_views
  22. if [ -x $CONFIG ]
  23. then
  24.     ERRFILE=/var/adm/log/scohelpins.$$.err
  25.     /usr/man/bin/config_views  >> $LOGFILE 2>> $ERRFILE
  26. fi
  27.  
  28. #
  29. # start scohelp daemon
  30. #
  31. if [ ! -f /etc/inst/scripts/postreboot.sh ]; then
  32.   if [ -x /etc/scohelphttp ] 
  33.   then
  34.     /etc/scohelphttp start
  35.   fi
  36. fi
  37. exit 0
  38.