mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-26 09:33:47 +00:00
committed by
Jesús Linares
parent
4c3f149428
commit
1d35f292db
@@ -71,6 +71,12 @@ apply_exclusion_data() {
|
|||||||
for exclusion_file in "${PERMANENT_DATA_EXCP[@]}"; do
|
for exclusion_file in "${PERMANENT_DATA_EXCP[@]}"; do
|
||||||
if [ -e ${WAZUH_INSTALL_PATH}/data_tmp/exclusion/${exclusion_file} ]
|
if [ -e ${WAZUH_INSTALL_PATH}/data_tmp/exclusion/${exclusion_file} ]
|
||||||
then
|
then
|
||||||
|
DIR=$(dirname "${exclusion_file}")
|
||||||
|
if [ ! -e ${DIR} ]
|
||||||
|
then
|
||||||
|
mkdir -p ${DIR}
|
||||||
|
fi
|
||||||
|
|
||||||
print "Updating ${exclusion_file}"
|
print "Updating ${exclusion_file}"
|
||||||
exec_cmd "cp -p ${WAZUH_INSTALL_PATH}/data_tmp/exclusion/${exclusion_file} ${exclusion_file}"
|
exec_cmd "cp -p ${WAZUH_INSTALL_PATH}/data_tmp/exclusion/${exclusion_file} ${exclusion_file}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user