File tree 2 files changed +20
-2
lines changed
OracleDatabase/SingleInstance/dockerfiles
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 179
179
180
180
# Check whether database is up and running
181
181
$ORACLE_BASE /$CHECK_DB_FILE
182
- if [ $? -eq 0 ]; then
182
+ status=$?
183
+
184
+ if [ $status -eq 0 ]; then
183
185
echo " #########################"
184
186
echo " DATABASE IS READY TO USE!"
185
187
echo " #########################"
@@ -196,6 +198,13 @@ else
196
198
echo " #####################################"
197
199
fi ;
198
200
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
+
199
208
# Tail on alert log and wait (otherwise container will exit)
200
209
echo " The following output is now a tail of the alert.log:"
201
210
tail -f $ORACLE_BASE /diag/rdbms/* /* /trace/alert* .log &
Original file line number Diff line number Diff line change 179
179
180
180
# Check whether database is up and running
181
181
$ORACLE_BASE /$CHECK_DB_FILE
182
- if [ $? -eq 0 ]; then
182
+ status=$?
183
+
184
+ if [ $status -eq 0 ]; then
183
185
echo " #########################"
184
186
echo " DATABASE IS READY TO USE!"
185
187
echo " #########################"
@@ -196,6 +198,13 @@ else
196
198
echo " #####################################"
197
199
fi ;
198
200
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
+
199
208
# Tail on alert log and wait (otherwise container will exit)
200
209
echo " The following output is now a tail of the alert.log:"
201
210
tail -f $ORACLE_BASE /diag/rdbms/* /* /trace/alert* .log &
You can’t perform that action at this time.
0 commit comments