From a7773d3a09abbccfe9473ff5d38418ef4016dc1d Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 3 Nov 2022 02:55:24 -0400 Subject: [PATCH] Add osd config yml to any artifacts (#2845) Signed-off-by: Peter Zhu Signed-off-by: Peter Zhu --- scripts/components/OpenSearch-Dashboards/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/components/OpenSearch-Dashboards/install.sh b/scripts/components/OpenSearch-Dashboards/install.sh index b7865259c4..cbccbda026 100755 --- a/scripts/components/OpenSearch-Dashboards/install.sh +++ b/scripts/components/OpenSearch-Dashboards/install.sh @@ -79,11 +79,11 @@ echo $DIR cd $DIR ## Setup default config -if [ "$DISTRIBUTION" = "tar" ]; then - cp ../../../config/opensearch_dashboards.yml "$OUTPUT/config/" -elif [ "$DISTRIBUTION" = "rpm" ]; then - cp ../../../config/opensearch_dashboards.yml "$OUTPUT/../etc/opensearch-dashboards/" +if [ "$DISTRIBUTION" = "rpm" ]; then + cp -v ../../../config/opensearch_dashboards.yml "$OUTPUT/../etc/opensearch-dashboards/" cp -a ../../../scripts/pkg/service_templates/opensearch-dashboards/* "$OUTPUT/../" cp -a ../../../scripts/pkg/build_templates/opensearch-dashboards/* "$OUTPUT/../" +else + cp -v ../../../config/opensearch_dashboards.yml "$OUTPUT/config/" fi