Fix copy except files (#238)

Former-commit-id: bd2fa5c40d
This commit is contained in:
Mayte Ariza
2019-09-06 10:42:39 +02:00
committed by Jesús Linares
parent 4c3f149428
commit 1d35f292db

View File

@@ -71,6 +71,12 @@ apply_exclusion_data() {
for exclusion_file in "${PERMANENT_DATA_EXCP[@]}"; do
if [ -e ${WAZUH_INSTALL_PATH}/data_tmp/exclusion/${exclusion_file} ]
then
DIR=$(dirname "${exclusion_file}")
if [ ! -e ${DIR} ]
then
mkdir -p ${DIR}
fi
print "Updating ${exclusion_file}"
exec_cmd "cp -p ${WAZUH_INSTALL_PATH}/data_tmp/exclusion/${exclusion_file} ${exclusion_file}"
fi