Merge pull request #435 from wazuh/433-entrypoint-scripts

Re-enable entrypoint scripts
This commit is contained in:
Manuel Gutierrez
2021-02-03 14:02:01 +01:00
committed by GitHub

View File

@@ -102,6 +102,16 @@ EOF
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
function_wazuh_migration
@@ -109,5 +119,8 @@ function_wazuh_migration
# create API custom user
function_create_custom_user
# run entrypoint scripts
function_entrypoint_scripts
# Start Wazuh
/var/ossec/bin/ossec-control start