From a0bfacb4afad36b8aa1c630d0202914a9438b1b1 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 19 Sep 2023 20:16:17 +0000 Subject: [PATCH] Revert "Allow opensearch-dashboard user to read its config (#4038)" This reverts commit c988f823dc1a8eeec45a628e72ab2e8ed7edc5e0. --- .../build_templates/opensearch-dashboards/deb/debian/postinst | 1 - .../opensearch-dashboards/rpm/opensearch-dashboards.rpm.spec | 1 - 2 files changed, 2 deletions(-) diff --git a/scripts/pkg/build_templates/opensearch-dashboards/deb/debian/postinst b/scripts/pkg/build_templates/opensearch-dashboards/deb/debian/postinst index 93a566971d..08f0094078 100755 --- a/scripts/pkg/build_templates/opensearch-dashboards/deb/debian/postinst +++ b/scripts/pkg/build_templates/opensearch-dashboards/deb/debian/postinst @@ -37,7 +37,6 @@ echo "### You can start opensearch-dashboards service by executing" echo " sudo systemctl start opensearch-dashboards.service" # Set ownership and permissions -chown -R root.opensearch-dashboards ${config_dir} chmod -R u=rwX,g=rX,o= ${config_dir} chown -R opensearch-dashboards.adm ${log_dir} diff --git a/scripts/pkg/build_templates/opensearch-dashboards/rpm/opensearch-dashboards.rpm.spec b/scripts/pkg/build_templates/opensearch-dashboards/rpm/opensearch-dashboards.rpm.spec index 53273b9ae0..df8e1bd064 100644 --- a/scripts/pkg/build_templates/opensearch-dashboards/rpm/opensearch-dashboards.rpm.spec +++ b/scripts/pkg/build_templates/opensearch-dashboards/rpm/opensearch-dashboards.rpm.spec @@ -76,7 +76,6 @@ exit 0 %post set -e -chown -R root.%{name} %{config_dir} # Reload systemctl daemon if command -v systemctl > /dev/null; then systemctl daemon-reload