#!/bin/sh
OH=`echo $ORACLE_HOME`
if [ $1 = "-rollback" ]
then
        if [ -d $OH/psu/10.2.0.4.3 ]
        then
        mv $OH/psu/10.2.0.4.3 $OH/psu/10.2.0.4.3_rollback
        fi
	if [ -d $OH/cpu/scripts ]
        then
        mv $OH/cpu/scripts $OH/cpu/scripts_rollback
        fi
else
        if [ -d $OH/psu/10.2.0.4.3 ]
        then
        rm -rf $OH/psu/10.2.0.4.3
        fi
        if [ -d $OH/cpu/scripts ]
        then
        rm -rf $OH/cpu/scripts
        fi
fi
if [ ! -f $OH/bin/genoccish ]
then
        touch $OH/bin/genoccish
        chmod u+x $OH/bin/genoccish
fi
if [ $1 = "-apply" ]
then
        if [ ! -d $OH/cfgtoollogs/catbundle ]
then
        mkdir $OH/cfgtoollogs/catbundle
fi
fi

