File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
OracleDatabase/SingleInstance/dockerfiles Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 179179
180180# Check whether database is up and running
181181$ORACLE_BASE /$CHECK_DB_FILE
182- if [ $? -eq 0 ]; then
182+ status=$?
183+
184+ if [ $status -eq 0 ]; then
183185 echo " #########################"
184186 echo " DATABASE IS READY TO USE!"
185187 echo " #########################"
@@ -196,6 +198,13 @@ else
196198 echo " #####################################"
197199fi ;
198200
201+ # Exiting the script without waiting on the tail logs
202+ if [ " $1 " = " --nowait" ]; then
203+ # Creating state-file for identifyig container of the prebuiltdb extended image
204+ touch " ${ORACLE_BASE} /oradata/${ORACLE_SID} /.prebuiltdb"
205+ exit $status ;
206+ fi
207+
199208# Tail on alert log and wait (otherwise container will exit)
200209echo " The following output is now a tail of the alert.log:"
201210tail -f $ORACLE_BASE /diag/rdbms/* /* /trace/alert* .log &
Original file line number Diff line number Diff line change 179179
180180# Check whether database is up and running
181181$ORACLE_BASE /$CHECK_DB_FILE
182- if [ $? -eq 0 ]; then
182+ status=$?
183+
184+ if [ $status -eq 0 ]; then
183185 echo " #########################"
184186 echo " DATABASE IS READY TO USE!"
185187 echo " #########################"
@@ -196,6 +198,13 @@ else
196198 echo " #####################################"
197199fi ;
198200
201+ # Exiting the script without waiting on the tail logs
202+ if [ " $1 " = " --nowait" ]; then
203+ # Creating state-file for identifyig container of the prebuiltdb extended image
204+ touch " ${ORACLE_BASE} /oradata/${ORACLE_SID} /.prebuiltdb"
205+ exit $status ;
206+ fi
207+
199208# Tail on alert log and wait (otherwise container will exit)
200209echo " The following output is now a tail of the alert.log:"
201210tail -f $ORACLE_BASE /diag/rdbms/* /* /trace/alert* .log &
You can’t perform that action at this time.
0 commit comments