Skip to content

Commit 7076246

Browse files
committed
changed sourcing of the config.sh to occur after the file is confirmed to exist
1 parent fb7c185 commit 7076246

File tree

1 file changed

+4
-2
lines changed
  • Oracle Scripts/DAC/init.d

1 file changed

+4
-2
lines changed

Oracle Scripts/DAC/init.d/dac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ if [ ! -f $DAC_HOME/config.sh ] ; then
5050
echo -n "**config.sh file not found at $DAC_HOME/config.sh"
5151
echo_failure
5252
echo ''
53+
else
54+
# source the config.sh file
55+
. $DAC_HOME/config.sh
5356
fi
5457

58+
5559
if [ ! -f $DAC_HOME/startserver.sh ] ; then
5660
echo ''
5761
echo -n "**startserver.sh file not found at $DAC_HOME/startserver.sh"
@@ -65,8 +69,6 @@ if [ ! -f $DAC_HOME/stopserver.sh ] ; then
6569
echo ''
6670
fi
6771

68-
#source the config.sh script
69-
. $DAC_HOME/config.sh
7072

7173

7274
check_permissions() {

0 commit comments

Comments
 (0)