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 {} ; +}