mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-01 20:43:35 +00:00
Merge pull request #435 from wazuh/433-entrypoint-scripts
Re-enable entrypoint scripts
This commit is contained in:
@@ -102,6 +102,16 @@ EOF
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function_entrypoint_scripts() {
|
||||||
|
# It will run every .sh script located in entrypoint-scripts folder in lexicographical order
|
||||||
|
if [ -d "/entrypoint-scripts/" ]
|
||||||
|
then
|
||||||
|
for script in `ls /entrypoint-scripts/*.sh | sort -n`; do
|
||||||
|
bash "$script"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Migrate data from /wazuh-migration volume
|
# Migrate data from /wazuh-migration volume
|
||||||
function_wazuh_migration
|
function_wazuh_migration
|
||||||
@@ -109,5 +119,8 @@ function_wazuh_migration
|
|||||||
# create API custom user
|
# create API custom user
|
||||||
function_create_custom_user
|
function_create_custom_user
|
||||||
|
|
||||||
|
# run entrypoint scripts
|
||||||
|
function_entrypoint_scripts
|
||||||
|
|
||||||
# Start Wazuh
|
# Start Wazuh
|
||||||
/var/ossec/bin/ossec-control start
|
/var/ossec/bin/ossec-control start
|
||||||
|
|||||||
Reference in New Issue
Block a user