home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
nws
/
install
/
preremove
< prev
next >
Wrap
Text File
|
1998-08-19
|
1KB
|
56 lines
#
# @(#)preremove 1.2
#
# This preremove is the union of all the preremove scripts in the set.
# This is because we want the set package to fail to remove if any of
# the individual packages fail to remove.
#
if [ "$RANDOM" = "$RANDOM" ]
then
exec /usr/bin/winxksh $0 $*
fi
# trap intr
trap "" 2
#
# Could run a winXksh screen here to warn the user of the implications of
# removing this package
#
# load misc functions from nwsrvr
. /var/sadm/pkg/nws/install/misc_func 2> /dev/null
SetLocale
# Load strings
. ${LANGDEP_SCRIPTS}/set_strings
FAIL="FALSE"
#
# check to see if the server running
#
TMP=`ps -ef|grep "NWS"|wc -l`
if [ $TMP -gt 1 ]
then
echo "$STOP_SERVER_TO_REMOVE"
FAIL="TRUE"
fi
#
# check for empty _netware directory ==> dsuninstall has been run.
#
SYSVOL=/SYS # get $SYSVOL from packaging
TMP=`grep "^SYSVOL=" /var/sadm/pkg/nwsrvr/pkginfo 2>/dev/null`
[ -z "$TMP" ] || eval "$TMP"
if [ -f $SYSVOL/_netware/entry.nds ]
then
echo $MUST_DSINSTALL_NWS
FAIL="TRUE"
fi
if [ "$FAIL" = "TRUE" ]
then
exit 3
fi