#!/bin/ksh
if test -x /usr/ucb/whoami
then
/usr/ucb/whoami | read USERID
else
USERID=root
fi
if [ "$USERID" != root ]
then
echo You have to be root to install the PTF!
echo Installation aborted
exit 1
fi
pkginfo IMinerP > /dev/null 2>/dev/null
if test $? -eq 0
then
echo Installing PTF for IMinerP
pkgadd -a ./admin -d ./IP22635.pkg IMinerP
else
echo No IBM DB2 Intelligent Miner for Data Parallel Server installation found.
exit 1
fi
echo Installation completed successful.
exit 0
