home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
scohelp
/
install
/
postinstall
< prev
next >
Wrap
Text File
|
1998-08-19
|
803b
|
39 lines
#!/bin/sh
# @(#) postinstall 15.4
#
# postinstall script for scohelp
# ---Add a default contents page for scohelp.
# ---Start scohelp daemon after install scohelp
#
CONTS_FILE=/usr/lib/scohelp/en_US.ISO8859-1/CONTENTS.html
if [ ! -f $CONTS_FILE ]
then
echo "<H1> Welcome to SCOhelp! </H1> No documentation is installed. Install one of the documentation packages to view online documentation." > $CONTS_FILE
fi
#
# Configure the default views
#
LOGFILE=/var/adm/log/scohelpins.$$.log
CONFIG=/usr/man/bin/config_views
if [ -x $CONFIG ]
then
ERRFILE=/var/adm/log/scohelpins.$$.err
/usr/man/bin/config_views >> $LOGFILE 2>> $ERRFILE
fi
#
# start scohelp daemon
#
if [ ! -f /etc/inst/scripts/postreboot.sh ]; then
if [ -x /etc/scohelphttp ]
then
/etc/scohelphttp start
fi
fi
exit 0