Update run_db_install.sh.j2

This commit is contained in:
Yacine31
2024-03-16 02:06:25 +01:00
parent 0358e0b581
commit b09cf5bff6

View File

@@ -5,8 +5,14 @@ chkifinstalled=`grep "{{ oracle_home }}" "{{ oracle_inventory }}/ContentsXML/inv
if [[ $chkifinstalled == 1 ]]; then if [[ $chkifinstalled == 1 ]]; then
echo "Error: ORACLE_HOME: {{ oracle_home }} already present. Exiting" echo "Error: ORACLE_HOME: {{ oracle_home }} already present. Exiting"
exit 0 exit 0
else
linux_version=$(cat /etc/os-release | egrep "^VERSION=" | cut -d= -f2 | sed 's/"//g' | cut -d. -f1)
if [ "${linux_verion}" -eq 9 ]
then
export CV_ASSUME_DISTID=OL8
else else
export CV_ASSUME_DISTID=OEL7.6 export CV_ASSUME_DISTID=OEL7.6
fi
{{ oracle_home }}/runInstaller -responseFile {{ oracle_sources }}/{{ db_response_file }} -ignorePrereqFailure -silent -waitforcompletion {{ oracle_home }}/runInstaller -responseFile {{ oracle_sources }}/{{ db_response_file }} -ignorePrereqFailure -silent -waitforcompletion
fi fi