From 1d2c1b33e3c099fa11a28264131642b3bbac01c6 Mon Sep 17 00:00:00 2001 From: Federico Gustavo Galland <99492720+f-galland@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:11:56 -0300 Subject: [PATCH] Ignoring /run and /var/run from the list of packaged directories (#286) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- distribution/packages/src/deb/debian/postinst | 2 +- distribution/packages/src/rpm/wazuh-indexer.rpm.spec | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/packages/src/deb/debian/postinst b/distribution/packages/src/deb/debian/postinst index 661d2b021be6b..4541f924534df 100644 --- a/distribution/packages/src/deb/debian/postinst +++ b/distribution/packages/src/deb/debian/postinst @@ -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 diff --git a/distribution/packages/src/rpm/wazuh-indexer.rpm.spec b/distribution/packages/src/rpm/wazuh-indexer.rpm.spec index 61e1880c76ee1..c7ad01c35cc26 100644 --- a/distribution/packages/src/rpm/wazuh-indexer.rpm.spec +++ b/distribution/packages/src/rpm/wazuh-indexer.rpm.spec @@ -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"