[PATCH compass-ci 1/2] container/defconfig.sh: set es indices

1 Dec
2020
1 Dec
'20
9:47 a.m.
when firstly deploy es service, need execute $CCI_SRC/sbin/es-*-mapping.sh after execute es/start, define function set_es_indices() to call, instead of doing this step manually. Signed-off-by: Liu Yinsi <liuyinsi@163.com> --- container/defconfig.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/container/defconfig.sh b/container/defconfig.sh index 8a5d08c..410ed75 100755 --- a/container/defconfig.sh +++ b/container/defconfig.sh @@ -21,3 +21,8 @@ docker_rm() docker stop $container docker rm -f $container } + +set_es_indices() +{ + find $CCI_SRC/sbin/ -name "es-*-mapping.sh" -exec sh {} \; +} -- 2.23.0
1547
Age (days ago)
1547
Last active (days ago)
0 comments
1 participants
participants (1)
-
Liu Yinsi