mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-14 10:57:31 +00:00
Update 0-wazuh-init
This commit is contained in:
@@ -179,6 +179,15 @@ set_rids_owner() {
|
|||||||
chown -R wazuh:wazuh /var/ossec/queue/rids
|
chown -R wazuh:wazuh /var/ossec/queue/rids
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# Change any ossec user/group to wazuh user/group
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
set_correct_permOwner() {
|
||||||
|
find / -group 997 -exec chown :101 {} +;
|
||||||
|
find / -user 999 -exec chown 101 {} +;
|
||||||
|
}
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Main function
|
# Main function
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@@ -190,6 +199,9 @@ main() {
|
|||||||
# Restore files stored in permanent data that are not permanent (i.e. internal_options.conf)
|
# Restore files stored in permanent data that are not permanent (i.e. internal_options.conf)
|
||||||
apply_exclusion_data
|
apply_exclusion_data
|
||||||
|
|
||||||
|
# Apply correct permission and ownership
|
||||||
|
set_correct_permOwner
|
||||||
|
|
||||||
# Rename files stored in permanent data (i.e. queue/ossec)
|
# Rename files stored in permanent data (i.e. queue/ossec)
|
||||||
move_data_files
|
move_data_files
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user