#!/bin/bash
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
#    NAME
#      10_gi_setup.sh
#
#    DESCRIPTION
#      GI Setup
#
#    NOTES
#       DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
#    AUTHOR
#       Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team
#
#    MODIFIED   (MM/DD/YY)
#    rcitton     03/30/20 - VBox libvirt & kvm support
#    rcitton     11/06/18 - Creation
#
#    REVISION
#    20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
. /vagrant/config/setup.env

sh ${ORA_INVENTORY}/orainstRoot.sh
if [ "${ORESTART}" == "false" ]
then
  sh ${GI_HOME}/root.sh
  ssh root@${NODE2_HOSTNAME} sh ${ORA_INVENTORY}/orainstRoot.sh
  ssh root@${NODE2_HOSTNAME} sh ${GI_HOME}/root.sh
else
  sh ${ORA_INVENTORY}/orainstRoot.sh
  sh ${GI_HOME}/root.sh
  ${GI_HOME}/perl/bin/perl -I ${GI_HOME}/perl/lib -I ${GI_HOME}/crs/install ${GI_HOME}/crs/install/roothas.pl
fi

#----------------------------------------------------------
# EndOfFile
#----------------------------------------------------------
