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"