New volumes declaration in Wazuh Dockerfile (#203)

This commit is contained in:
Mayte Ariza
2019-07-09 13:59:36 +02:00
committed by Jesús Linares
parent eca30fb709
commit 15dbd60605
3 changed files with 30 additions and 4 deletions
+4 -4
View File
@@ -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