Skip to content

Commit 0a81502

Browse files
committed
Move environment variables configuration at entrypoint.sh
1 parent 66fd93e commit 0a81502

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
chown -R oracle:dba /u01/app/oracle
55
# Update hostname
66
sed -i -E "s/HOST = [^)]+/HOST = $HOSTNAME/g" /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
7+
echo "export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe" >> /etc/bash.bashrc
8+
echo "export PATH=$ORACLE_HOME/bin:$PATH" >> /etc/bash.bashrc
9+
echo "export ORACLE_SID=XE" >> /etc/bash.bashrc
710

811
case "$1" in
912
'')
@@ -12,9 +15,6 @@ case "$1" in
1215
echo "found files in /u01/app/oracle/oradata Using them instead of initial database"
1316
else
1417
echo "Database not initialized. Initializing database."
15-
echo "export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe" >> /etc/bash.bashrc
16-
echo "export PATH=$ORACLE_HOME/bin:$PATH" >> /etc/bash.bashrc
17-
echo "export ORACLE_SID=XE" >> /etc/bash.bashrc
1818
printf 8080\\n1521\\noracle\\noracle\\ny\\n | /etc/init.d/oracle-xe configure
1919
echo "Database initialized. Please visit http://#containeer:8080/apex to proceed with configuration"
2020
fi

0 commit comments

Comments
 (0)