We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a81502 commit f4d7a46Copy full SHA for f4d7a46
entrypoint.sh
@@ -4,9 +4,10 @@
4
chown -R oracle:dba /u01/app/oracle
5
# Update hostname
6
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
+echo "export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe" > /etc/profile.d/oracle-xe.sh
+echo "export PATH=\$ORACLE_HOME/bin:\$PATH" >> /etc/profile.d/oracle-xe.sh
+echo "export ORACLE_SID=XE" >> /etc/profile.d/oracle-xe.sh
10
+. /etc/profile
11
12
case "$1" in
13
'')
0 commit comments