#!/bin/sh
OH=`echo $ORACLE_HOME`
if [ $1 = "-rollback" ]
then
        if [ -d $OH/psu/10.2.0.4.5 ]
        then
        mv $OH/psu/10.2.0.4.5 $OH/psu/10.2.0.4.5_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.5 ]
        then
        rm -rf $OH/psu/10.2.0.4.5
        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

