Skip to content

Commit b4cf382

Browse files
authored
Eliminate misleading initialization message
When the container starts, the following output is produced: ``` Starting Oracle Net Listener. Starting Oracle Database 11g Express Edition instance. /usr/sbin/startup.sh: ignoring /docker-entrypoint-initdb.d/* ``` It looks like it ignores the entire init directory, however, it only means that it's empty, and the `*` symbol in the `for` loop is not resolved to any list of files, therefore it's used as is and is ignored since it's not a `*.sh` or `*.sql` file. With the fix, the script will ignore the unresolved wildcard.
1 parent 58f8df0 commit b4cf382

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/startup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ if [ "$ORACLE_DISABLE_ASYNCH_IO" = true ]; then
3030
fi
3131

3232
for f in /docker-entrypoint-initdb.d/*; do
33+
[ -f "$f" ] || continue
3334
case "$f" in
3435
*.sh) echo "$0: running $f"; . "$f" ;;
3536
*.sql) echo "$0: running $f"; echo "exit" | /u01/app/oracle/product/11.2.0/xe/bin/sqlplus "SYS/oracle" AS SYSDBA @"$f"; echo ;;

0 commit comments

Comments
 (0)