Skip to content

Commit

Permalink
Exclude queue/ossec from volume
Browse files Browse the repository at this point in the history
  • Loading branch information
DFolchA committed Sep 2, 2021
1 parent 750fe5f commit 6da1b19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wazuh-odfe/config/etc/cont-init.d/0-wazuh-init
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ remove_data_files() {
if [ -e ${del_file} ]
then
print "Removing ${del_file}"
exec_cmd "rm ${del_file}"
exec_cmd "rm -rf ${del_file}"
fi
done
}
Expand Down
3 changes: 3 additions & 0 deletions wazuh-odfe/config/permanent_data.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ PERMANENT_DATA[((i++))]="/var/ossec/api/configuration"
PERMANENT_DATA[((i++))]="/var/ossec/etc"
PERMANENT_DATA[((i++))]="/var/ossec/logs"
PERMANENT_DATA[((i++))]="/var/ossec/queue"
PERMANENT_DATA[((i++))]="/var/ossec/queue/sockets"
PERMANENT_DATA[((i++))]="/var/ossec/queue/logcollector"
PERMANENT_DATA[((i++))]="/var/ossec/agentless"
PERMANENT_DATA[((i++))]="/var/ossec/var/multigroups"
PERMANENT_DATA[((i++))]="/var/ossec/integrations"
Expand Down Expand Up @@ -62,4 +64,5 @@ export PERMANENT_DATA_EXCP
# Files mounted in a volume that should be deleted
i=0
PERMANENT_DATA_DEL[((i++))]="/var/ossec/queue/db/.template.db"
PERMANENT_DATA_DEL[((i++))]="/var/ossec/queue/ossec"
export PERMANENT_DATA_DEL

0 comments on commit 6da1b19

Please sign in to comment.