File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ if [ -f ${OPERATOR_BINDIR}/orchestrator.conf.json ]; then
14
14
fi
15
15
16
16
sleep 10 # give time for SRV records to update
17
-
18
17
NAMESPACE=$( < /var/run/secrets/kubernetes.io/serviceaccount/namespace)
18
+
19
+ tmp=$( mktemp)
19
20
jq -M " . + {
20
21
HTTPAdvertise:\" http://$HOSTNAME .$NAMESPACE :3000\" ,
21
22
RaftAdvertise:\" $HOSTNAME .$NAMESPACE \" ,
@@ -27,7 +28,8 @@ jq -M ". + {
27
28
MySQLTopologySSLCertFile:\" ${ORC_CONF_PATH} /ssl/tls.crt\" ,
28
29
MySQLTopologySSLCAFile:\" ${ORC_CONF_PATH} /ssl/ca.crt\" ,
29
30
RaftNodes:[]
30
- }" " ${ORC_CONF_FILE} " 1<> " ${ORC_CONF_FILE} "
31
+ }" " $ORC_CONF_FILE " > " $tmp "
32
+ cat " $tmp " > " $ORC_CONF_FILE "
31
33
32
34
if [ -f " ${CUSTOM_CONF_FILE} " ]; then
33
35
jq -M -s " .[0] * .[1]" " ${ORC_CONF_FILE} " " ${CUSTOM_CONF_FILE} " 1<> " ${ORC_CONF_FILE} "
You can’t perform that action at this time.
0 commit comments