File tree Expand file tree Collapse file tree 3 files changed +81
-2
lines changed Expand file tree Collapse file tree 3 files changed +81
-2
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,14 @@ $SCRIPT/setTimeZone.sh
25
25
26
26
. $SCRIPT /setUTF8Locale.sh
27
27
28
- if [ -s " $SCRIPT /customEnd.sh" ]
28
+ if [ -s " $SCRIPT /customEnd.sh" ]
29
29
then
30
- $SCRIPT /customEnd.sh
30
+ $SCRIPT /customEnd.sh
31
+ fi
32
+
33
+ if [ -n " $DEMO " ]
34
+ then
35
+ $SCRIPT /updateDemoServers.sh &
31
36
fi
32
37
33
38
/opt/ibm/wlp/bin/server run defaultServer
Original file line number Diff line number Diff line change @@ -253,6 +253,12 @@ then
253
253
sed -i ' s|/DecisionRunner|' $DECISIONRUNNER_CONTEXT_ROOT /DecisionRunner' |g' $DC_SERVER_CONFIG
254
254
fi
255
255
256
+ if [ -n " $DEMO " ]
257
+ then
258
+ echo " Update flag to allow update of existing server definition in $DC_SERVER_CONFIG "
259
+ sed -i ' s|false|true|g' $DC_SERVER_CONFIG
260
+ fi
261
+
256
262
if [ -s " /config/auth/ldap-configurations.xml" ]
257
263
then
258
264
echo " Update LDAP synchronization mode to users in decisioncenter-configuration.properties"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ sleep 60
4
+
5
+ PROTOCOL=http
6
+
7
+ if [ -n " $ENABLE_TLS " ]
8
+ then
9
+ PROTOCOL=https
10
+ fi
11
+
12
+ DSC_HOST=odm-decisionserverconsole
13
+
14
+ if [ -n " $DECISIONSERVERCONSOLE_NAME " ]
15
+ then
16
+ DSC_HOST=$DECISIONSERVERCONSOLE_NAME
17
+ fi
18
+
19
+ DR_HOST=odm-decisionrunner
20
+
21
+ if [ -n " $DECISIONRUNNER_NAME " ]
22
+ then
23
+ DR_HOST=$DECISIONRUNNER_NAME
24
+ fi
25
+
26
+ DSC_PORT=9080
27
+
28
+ if [ -n " $DECISIONSERVERCONSOLE_PORT " ]
29
+ then
30
+ DSC_PORT=$DECISIONSERVERCONSOLE_PORT
31
+ fi
32
+
33
+ DR_PORT=9080
34
+
35
+ if [ -n " $DECISIONRUNNER_PORT " ]
36
+ then
37
+ DR_PORT=$DECISIONRUNNER_PORT
38
+ fi
39
+
40
+ DSE_URL=$PROTOCOL " ://" $DSC_HOST " :" $DSC_PORT " /res"
41
+
42
+ DR_URL=$PROTOCOL " ://" $DR_HOST " :" $DR_PORT " /DecisionRunner"
43
+
44
+ retry=0
45
+ while [[ (" $( curl -X POST " http://localhost:9060/decisioncenter-api/v1/servers/d8cb5830-14aa-45e0-89e2-8837f4d91021" -H " Content-Type: application/json;charset=UTF-8" -d " { \" url\" : \" $DSE_URL \" }" -H " authorization: Basic b2RtQWRtaW46b2RtQWRtaW4=" -w " %{http_code}" -s -o /dev/null) " ! = 200) && ( $retry -lt 10) ]]; do
46
+ echo " try updating Decision Service Execution with $DSE_URL "
47
+ sleep 5
48
+ retry=$(( retry + 1 ))
49
+ done
50
+
51
+ if [[ $retry == 10 ]]; then
52
+ echo " failed to update Decision Service Execution with $DSE_URL "
53
+ else
54
+ echo " successfully updated Decision Service Execution with $DSE_URL "
55
+ fi
56
+
57
+ retry=0
58
+ while [[ (" $( curl -X POST " http://localhost:9060/decisioncenter-api/v1/servers/a677f1c1-8633-42ff-8e4e-994fb52b3384" -H " Content-Type: application/json;charset=UTF-8" -d " { \" url\" : \" $DR_URL \" }" -H " authorization: Basic b2RtQWRtaW46b2RtQWRtaW4=" -w " %{http_code}" -s -o /dev/null) " ! = 200) && ( $retry -lt 10) ]]; do
59
+ echo " try updating Test and Simulation Execution with $DR_URL "
60
+ sleep 5
61
+ retry=$(( retry + 1 ))
62
+ done
63
+
64
+ if [[ $retry == 10 ]]; then
65
+ echo " failed to update Test and Simulation Execution with $DR_URL "
66
+ else
67
+ echo " successfully updated Test and Simulation Execution with $DR_URL "
68
+ fi
You can’t perform that action at this time.
0 commit comments