Skip to content

Commit

Permalink
Fix the incorrect location of pkg build_templates (opensearch-project…
Browse files Browse the repository at this point in the history
…#4539)

Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored and Divyaasm committed Mar 21, 2024
1 parent d94a930 commit 01b5560
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/components/OpenSearch-Dashboards/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ if [ "$DISTRIBUTION" = "rpm" -o "$DISTRIBUTION" = "deb" ]; then
cp -a ../../../scripts/pkg/service_templates/opensearch-dashboards/* "$OUTPUT/../"

if [ "$MAJOR_VERSION" = "1" ]; then
cp -a ../../../scripts/pkg/build_templates/opensearch-dashboards/$DISTRIBUTION/legacy/* "$OUTPUT/../"
cp -a ../../../scripts/pkg/build_templates/legacy/opensearch-dashboards/$DISTRIBUTION/* "$OUTPUT/../"
else
cp -a ../../../scripts/pkg/build_templates/opensearch-dashboards/$DISTRIBUTION/current/* "$OUTPUT/../"
cp -a ../../../scripts/pkg/build_templates/current/opensearch-dashboards/$DISTRIBUTION/* "$OUTPUT/../"
fi
else
cp -v ../../../config/opensearch_dashboards-$MAJOR_VERSION.x.yml "$OUTPUT/config/opensearch_dashboards.yml"
Expand Down
4 changes: 2 additions & 2 deletions scripts/components/OpenSearch/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ if [ "$DISTRIBUTION" = "tar" ]; then
elif [ "$DISTRIBUTION" = "deb" -o "$DISTRIBUTION" = "rpm" ]; then
cp -va ../../../scripts/pkg/service_templates/opensearch/* "$OUTPUT/../"
if [ "$MAJOR_VERSION" = "1" ]; then
cp -va ../../../scripts/pkg/build_templates/opensearch/$DISTRIBUTION/legacy/* "$OUTPUT/../"
cp -va ../../../scripts/pkg/build_templates/legacy/opensearch/$DISTRIBUTION/* "$OUTPUT/../"
else
cp -va ../../../scripts/pkg/build_templates/opensearch/$DISTRIBUTION/current/* "$OUTPUT/../"
cp -va ../../../scripts/pkg/build_templates/current/opensearch/$DISTRIBUTION/* "$OUTPUT/../"
fi
elif [ "$DISTRIBUTION" = "zip" ] && [ "$PLATFORM" = "windows" ]; then
cp -v ../../../scripts/startup/zip/windows/opensearch-windows-install.bat "$OUTPUT/"
Expand Down

0 comments on commit 01b5560

Please sign in to comment.