forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
wazuh-template.json
to packages (#116)
* Download wazuh-template.json from wazuh/wazuh repo * Add wazuh-template.json to RPM package spec * Setting wazuh-template.json attributes to 660 * Change wazuh-template.json attributes in debmake_install.sh * Put template download command within a function * Small fixes and format * Apply correct file permissions to the wazuh-template.json --------- Co-authored-by: Álex Ruiz <[email protected]>
- Loading branch information
Showing
4 changed files
with
76 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,9 +64,10 @@ mkdir -p %{buildroot}%{pid_dir} | |
mkdir -p %{buildroot}%{product_dir}/plugins | ||
# Install directories/files | ||
cp -a etc usr var %{buildroot} | ||
chmod 0755 %{buildroot}%{product_dir}/bin/* | ||
chmod 0750 %{buildroot}%{product_dir}/bin/* | ||
if [ -d %{buildroot}%{product_dir}/plugins/opensearch-security ]; then | ||
chmod 0755 %{buildroot}%{product_dir}/plugins/opensearch-security/tools/* | ||
chmod 0640 %{buildroot}%{product_dir}/plugins/opensearch-security/tools/* | ||
chmod 0740 %{buildroot}%{product_dir}/plugins/opensearch-security/tools/*.sh | ||
fi | ||
# Pre-populate the folders to ensure rpm build success even without all plugins | ||
mkdir -p %{buildroot}%{config_dir}/opensearch-observability | ||
|
@@ -192,9 +193,7 @@ exit 0 | |
|
||
# Wazuh additional files | ||
%attr(440, %{name}, %{name}) %{product_dir}/VERSION | ||
%attr(750, %{name}, %{name}) %{product_dir}/bin/indexer-security-init.sh | ||
%attr(750, %{name}, %{name}) %{product_dir}/bin/indexer-ism-init.sh | ||
%attr(750, %{name}, %{name}) %{product_dir}/bin/indexer-init.sh | ||
%attr(660, %{name}, %{name}) %{config_dir}/wazuh-template.json | ||
|
||
%changelog | ||
* Thu Mar 28 2024 support <[email protected]> - 4.9.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters