diff --git a/distribution/packages/src/deb/debian/postinst b/distribution/packages/src/deb/debian/postinst index 235075824aa45..661d2b021be6b 100644 --- a/distribution/packages/src/deb/debian/postinst +++ b/distribution/packages/src/deb/debian/postinst @@ -25,12 +25,12 @@ tmp_dir=/var/log/wazuh-indexer/tmp mkdir -p ${tmp_dir} # Set owner -chown -R wazuh-indexer.wazuh-indexer ${product_dir} -chown -R wazuh-indexer.wazuh-indexer ${config_dir} -chown -R wazuh-indexer.wazuh-indexer ${log_dir} -chown -R wazuh-indexer.wazuh-indexer ${data_dir} -chown -R wazuh-indexer.wazuh-indexer ${pid_dir} -chown -R wazuh-indexer.wazuh-indexer ${tmp_dir} +chown -R wazuh-indexer:wazuh-indexer ${product_dir} +chown -R wazuh-indexer:wazuh-indexer ${config_dir} +chown -R wazuh-indexer:wazuh-indexer ${log_dir} +chown -R wazuh-indexer:wazuh-indexer ${data_dir} +chown -R wazuh-indexer:wazuh-indexer ${pid_dir} +chown -R wazuh-indexer:wazuh-indexer ${tmp_dir} # Reload systemctl daemon if command -v systemctl > /dev/null; then