Skip to content

Commit

Permalink
Announce upcoming breaking changes in packaging
Browse files Browse the repository at this point in the history
In opensearch-project#4043, we will introduce changes that might impact users.  Add a note
at installation time to warn them about this future change and how to
proceed to not have trouble if they will be affected by the change.

Signed-off-by: Romain Tartière <[email protected]>
  • Loading branch information
smortex committed Sep 20, 2023
1 parent 4d53d69 commit f6153c5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ echo " sudo systemctl daemon-reload"
echo " sudo systemctl enable opensearch-dashboards.service"
echo "### You can start opensearch-dashboards service by executing"
echo " sudo systemctl start opensearch-dashboards.service"
echo "### Upcoming breaking change in packaging"
echo " We are planing to tighten the permissions of installed files in a future version of the opensearch-dashboards package."
echo " If you setup tooling that needs read access to the OpenSearch Dashboards configuration files, we invite you to add the user running these tools to the 'opensearch-dashboards' group."
echo " More info: https://github.com/opensearch-project/opensearch-build/pull/4043"

# Set owner
chown -R opensearch-dashboards.opensearch-dashboards ${product_dir}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ echo " sudo systemctl daemon-reload"
echo " sudo systemctl enable opensearch-dashboards.service"
echo "### You can start opensearch-dashboards service by executing"
echo " sudo systemctl start opensearch-dashboards.service"
echo "### Upcoming breaking change in packaging"
echo " We are planing to tighten the permissions of installed files in a future version of the opensearch-dashboards package."
echo " If you setup tooling that needs read access to the OpenSearch Dashboards configuration files, we invite you to add the user running these tools to the 'opensearch-dashboards' group."
echo " More info: https://github.com/opensearch-project/opensearch-build/pull/4043"
exit 0

%preun
Expand Down
4 changes: 4 additions & 0 deletions scripts/pkg/build_templates/opensearch/deb/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ if [ -d ${product_dir}/plugins/opensearch-security ]; then
echo "### Create opensearch demo certificates in ${config_dir}/"
echo " See demo certs creation log in ${log_dir}/install_demo_configuration.log"
fi
echo "### Upcoming breaking change in packaging"
echo " We are planing to tighten the permissions of installed files in a future version of the opensearch package."
echo " If you setup tooling that needs read access to the OpenSearch configuration files, we invite you to add the user running these tools to the 'opensearch' group."
echo " More info: https://github.com/opensearch-project/opensearch-build/pull/4043"
exit 0


Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ if [ -d %{product_dir}/plugins/opensearch-security ]; then
echo "### Create opensearch demo certificates in %{config_dir}/"
echo " See demo certs creation log in %{log_dir}/install_demo_configuration.log"
fi
echo "### Upcoming breaking change in packaging"
echo " We are planing to tighten the permissions of installed files in a future version of the opensearch package."
echo " If you setup tooling that needs read access to the OpenSearch configuration files, we invite you to add the user running these tools to the 'opensearch' group."
echo " More info: https://github.com/opensearch-project/opensearch-build/pull/4043"
exit 0

%preun
Expand Down

0 comments on commit f6153c5

Please sign in to comment.