From 398a9479eda7a66a357e7ad0297dcd2378b6ec49 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 18 Sep 2024 15:55:13 -0300 Subject: [PATCH] Fix RPM package generation --- dev-tools/build-packages/rpm/wazuh-dashboard.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/build-packages/rpm/wazuh-dashboard.spec b/dev-tools/build-packages/rpm/wazuh-dashboard.spec index 2c9496aaa053..b6ca32c3c761 100644 --- a/dev-tools/build-packages/rpm/wazuh-dashboard.spec +++ b/dev-tools/build-packages/rpm/wazuh-dashboard.spec @@ -130,7 +130,7 @@ fi setcap 'cap_net_bind_service=+ep' %{INSTALL_DIR}/node/bin/node setcap 'cap_net_bind_service=+ep' %{INSTALL_DIR}/node/fallback/bin/node -if [ ! -f %{INSTALLATION_DIR}/config/opensearch_dashboards.keystore ]; then +if [ ! -f %{CONFIG_DIR}/opensearch_dashboards.keystore ]; then runuser %{USER} --shell="/bin/bash" --command="%{INSTALL_DIR}/bin/opensearch-dashboards-keystore create" > /dev/null 2>&1 runuser %{USER} --shell="/bin/bash" --command="echo kibanaserver | %{INSTALL_DIR}/bin/opensearch-dashboards-keystore add opensearch.username --stdin" > /dev/null 2>&1 runuser %{USER} --shell="/bin/bash" --command="echo kibanaserver | %{INSTALL_DIR}/bin/opensearch-dashboards-keystore add opensearch.password --stdin" > /dev/null 2>&1