Skip to content

Commit

Permalink
Ignoring /run and /var/run from the list of packaged directories (#286)
Browse files Browse the repository at this point in the history
* Ignoring /run and /var/run from the list of packaged directories

* Changing pid file dir to /var/run/wazuh-indexer

* Changing pid file dir to /run/wazuh-indexer

* Changing pid file dir to /run/wazuh-indexer

---------

Co-authored-by: Álex Ruiz <[email protected]>
  • Loading branch information
f-galland and AlexRuiz7 committed Aug 20, 2024
1 parent 7bade6d commit 8296584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion distribution/packages/src/deb/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ product_dir=/usr/share/wazuh-indexer
config_dir=/etc/wazuh-indexer
data_dir=/var/lib/wazuh-indexer
log_dir=/var/log/wazuh-indexer
pid_dir=/var/run/wazuh-indexer
pid_dir=/run/wazuh-indexer
tmp_dir=/var/log/wazuh-indexer/tmp


Expand Down
3 changes: 2 additions & 1 deletion distribution/packages/src/rpm/wazuh-indexer.rpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ set -- "$@" "%%dir /usr/lib/systemd/system"
set -- "$@" "%%dir /usr/lib/tmpfiles.d"
set -- "$@" "%%dir /usr/share"
set -- "$@" "%%dir /var"
set -- "$@" "%%dir /var/run"
set -- "$@" "%%dir /run"
set -- "$@" "%%dir /var/lib"
set -- "$@" "%%dir /var/log"
set -- "$@" "%%dir /usr/lib/sysctl.d"
set -- "$@" "%%dir /usr/lib/systemd"
set -- "$@" "%%dir /usr/lib/systemd"
set -- "$@" "%{_sysconfdir}/sysconfig/%{name}"
set -- "$@" "%{config_dir}/log4j2.properties"
set -- "$@" "%{config_dir}/jvm.options"
Expand Down

0 comments on commit 8296584

Please sign in to comment.