Update run_db_install.sh.j2
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user