File tree Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -19,26 +19,18 @@ source "logging"
19
19
20
20
wait_for_port_open
21
21
22
- # find out who the master of the cluster is
23
- master_node=$( get_master_node)
24
-
25
- # if we're the master -- do the init
26
- if [[ " $master_node " == " $DC_NAME " ]]; then
27
-
28
- failed=0
29
-
30
- touch ${HOME} /init_running
31
- pushd " ${ES_HOME} /init"
32
- files=$( ls --hide common | sort)
33
- for init_file in ${files} ; do
34
- if [ -f " ${init_file} " ] ; then
35
- ./" ${init_file} " || { failed=1 ; echo " failed init: ${init_file} " >> ${HOME} /init_failures ; }
36
- fi
37
- done
38
- popd
39
-
40
- if [ $failed -eq 1 ]; then
41
- show_failures
42
- fi
43
-
22
+ failed=0
23
+
24
+ touch ${HOME} /init_running
25
+ pushd " ${ES_HOME} /init"
26
+ files=$( ls --hide common | sort)
27
+ for init_file in ${files} ; do
28
+ if [ -f " ${init_file} " ] ; then
29
+ ./" ${init_file} " || { failed=1 ; echo " failed init: ${init_file} " >> ${HOME} /init_failures ; }
30
+ fi
31
+ done
32
+ popd
33
+
34
+ if [ $failed -eq 1 ]; then
35
+ show_failures
44
36
fi
You can’t perform that action at this time.
0 commit comments