From 1c8d60b14ff26818839884953e6af5014e936f15 Mon Sep 17 00:00:00 2001 From: c-bordon Date: Tue, 22 Aug 2023 11:46:39 -0300 Subject: [PATCH] Added umask to wazuh-indexer.service --- .../base/files/usr/lib/systemd/system/wazuh-indexer.service | 1 + stack/indexer/rpm/build_package.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stack/indexer/base/files/usr/lib/systemd/system/wazuh-indexer.service b/stack/indexer/base/files/usr/lib/systemd/system/wazuh-indexer.service index 043f0f854c..aa0fc5383b 100644 --- a/stack/indexer/base/files/usr/lib/systemd/system/wazuh-indexer.service +++ b/stack/indexer/base/files/usr/lib/systemd/system/wazuh-indexer.service @@ -18,6 +18,7 @@ WorkingDirectory=/usr/share/wazuh-indexer User=wazuh-indexer Group=wazuh-indexer +UMask=0027 ExecStart=/usr/share/wazuh-indexer/bin/systemd-entrypoint -p ${PID_DIR}/wazuh-indexer.pid --quiet diff --git a/stack/indexer/rpm/build_package.sh b/stack/indexer/rpm/build_package.sh index d6adf0c399..fbd656a249 100755 --- a/stack/indexer/rpm/build_package.sh +++ b/stack/indexer/rpm/build_package.sh @@ -8,7 +8,7 @@ # License (version 2) as published by the FSF - Free Software # Foundation. -set -ex +set -e current_path="$( cd $(dirname $0) ; pwd -P )" architecture="x86_64"