1
1
#! /bin/bash
2
2
#
3
- # Copyright (c) 2020, 2022 , Oracle and/or its affiliates.
3
+ # Copyright (c) 2020, 2023 , Oracle and/or its affiliates.
4
4
#
5
5
# Licensed under the Universal Permissive License v 1.0 as shown at
6
6
# https://oss.oracle.com/licenses/upl.
9
9
#
10
10
11
11
# Variables for this script to work
12
+
13
+ # shellcheck disable=SC2154,SC2166,SC2046
12
14
source ${SCRIPT_DIR} /setEnvVars.sh
13
15
source ${SCRIPT_DIR} /common_functions.sh
14
16
@@ -19,33 +21,10 @@ function _term() {
19
21
$OUD_INST_HOME /bin/stop-ds
20
22
}
21
23
22
- # ########## SIGKILL handler ############
23
- function _kill() {
24
- echo " [$( date) ] - SIGKILL received, shutting down the server!"
25
- kill -9 $childPID
26
- }
27
24
28
25
# Set SIGTERM handler
29
26
trap _term SIGTERM
30
27
31
- # Set SIGKILL handler
32
- trap _kill SIGKILL
33
-
34
- #
35
- updateJavaProps () {
36
- echo " " >> ${OUD_INST_HOME} /config/java.properties
37
- # Disabling Enpoint Identification for selected CLIs to allow connecting to OUD Instance with any hostname
38
- echo " dsconfig.java-args=-client -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" >> ${OUD_INST_HOME} /config/java.properties
39
- echo " dsreplication.java-args=-client -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" >> ${OUD_INST_HOME} /config/java.properties
40
- echo " uninstall.java-args=-client -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" >> ${OUD_INST_HOME} /config/java.properties
41
- echo " status.java-args=-client -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" >> ${OUD_INST_HOME} /config/java.properties
42
- echo " import-ldif.online.java-args=-client -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" >> ${OUD_INST_HOME} /config/java.properties
43
- echo " manage-suffix.java-args=-client -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" >> ${OUD_INST_HOME} /config/java.properties
44
- echo " ldapmodify.java-args=-client -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" >> ${OUD_INST_HOME} /config/java.properties
45
- echo " ldapsearch.java-args=-client -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" >> ${OUD_INST_HOME} /config/java.properties
46
- echo " start-ds.java-args=-server -Xms256m -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" >> ${OUD_INST_HOME} /config/java.properties
47
- ${OUD_INST_HOME} /bin/dsjavaproperties
48
- }
49
28
50
29
printEnvVars () {
51
30
echo " [$( date) ] - Environment Variables which would influence OUD Instance setup and configuration"
@@ -549,17 +528,11 @@ else
549
528
550
529
if [ " $ordinal " == " 0" ]; then
551
530
echo " [$( date) ] - Calling createOUD_Directory"
552
- if [[ -f " /u01/oracle/config-input/config-baseOUD.props" ]]; then
553
- source " /u01/oracle/config-input/config-baseOUD.props"
554
- fi
555
531
createOUD_Directory
556
532
fi
557
533
558
534
if [[ " $ordinal " != " 0" && ! -z " $ordinal " ]]; then
559
535
echo " [$( date) ] - Calling createOUD_DS2RS"
560
- if [[ -f " /u01/oracle/config-input/config-replOUD.props" ]]; then
561
- source " /u01/oracle/config-input/config-replOUD.props"
562
- fi
563
536
createOUD_DS2RS
564
537
fi
565
538
;;
0 commit comments