Skip to content

Commit feadff2

Browse files
committed
Disable password verification by default. Move init scripts to /docker-entrypoint-initdb.d.bak after executed.
1 parent 35ce8fa commit feadff2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

assets/setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,8 @@ chmod +x /usr/sbin/startup.sh &&
4444
# Remove installation files
4545
rm -r /assets/
4646

47+
# Create initialization script folders
48+
mkdir /docker-entrypoint-initdb.d
49+
mkdir /docker-entrypoint-initdb.d.bak
4750

4851
exit $?

assets/startup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
1515
export PATH=$ORACLE_HOME/bin:$PATH
1616
export ORACLE_SID=XE
1717

18+
echo "ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;" | sqlplus -s SYSTEM/oracle
19+
1820
if [ "$ORACLE_ALLOW_REMOTE" = true ]; then
1921
echo "alter system disable restricted session;" | sqlplus -s SYSTEM/oracle
2022
fi
@@ -27,3 +29,7 @@ for f in /docker-entrypoint-initdb.d/*; do
2729
esac
2830
echo
2931
done
32+
33+
if [ "$(ls -A /docker-entrypoint-initdb.d)" ]; then
34+
mv /docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d.bak
35+
fi

0 commit comments

Comments
 (0)