Skip to content

Commit f4d7a46

Browse files
committed
Fix $PATH
1 parent 0a81502 commit f4d7a46

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
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
7+
echo "export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe" > /etc/profile.d/oracle-xe.sh
8+
echo "export PATH=\$ORACLE_HOME/bin:\$PATH" >> /etc/profile.d/oracle-xe.sh
9+
echo "export ORACLE_SID=XE" >> /etc/profile.d/oracle-xe.sh
10+
. /etc/profile
1011

1112
case "$1" in
1213
'')

0 commit comments

Comments
 (0)