forked from wazuh/wazuh-docker
New volumes declaration in Wazuh Dockerfile (#203)
This commit is contained in:
committed by
Jesús Linares
parent
eca30fb709
commit
15dbd60605
@@ -14,9 +14,9 @@ mkdir ${EXCLUSION_PATH}
|
||||
|
||||
for exclusion_file in "${PERMANENT_DATA_EXCP[@]}"; do
|
||||
# Create the directory for the exclusion file if it does not exist
|
||||
if [ ! -e ${EXCLUSION_PATH}/${exclusion_file} ]
|
||||
DIR=$(dirname "${exclusion_file}")
|
||||
if [ ! -e ${EXCLUSION_PATH}/${DIR} ]
|
||||
then
|
||||
DIR=$(dirname "${exclusion_file}")
|
||||
mkdir -p ${EXCLUSION_PATH}/${DIR}
|
||||
fi
|
||||
|
||||
@@ -29,9 +29,9 @@ mkdir ${PERMANENT_PATH}
|
||||
|
||||
for permanent_dir in "${PERMANENT_DATA[@]}"; do
|
||||
# Create the directory for the permanent file if it does not exist
|
||||
if [ ! -e ${PERMANENT_PATH}${permanent_dir} ]
|
||||
DIR=$(dirname "${permanent_dir}")
|
||||
if [ ! -e ${PERMANENT_PATH}${DIR} ]
|
||||
then
|
||||
DIR=$(dirname "${permanent_dir}")
|
||||
mkdir -p ${PERMANENT_PATH}${DIR}
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user