diff --git a/wazuh/config/entrypoint.sh b/wazuh/config/entrypoint.sh index 36c776bd..c195b57d 100644 --- a/wazuh/config/entrypoint.sh +++ b/wazuh/config/entrypoint.sh @@ -1,6 +1,8 @@ #!/bin/bash # Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2) +# Trap to kill container if it is necessary. +trap "exit" SIGINT SIGTERM # It will run every .sh script located in entrypoint-scripts folder in lexicographical order for script in `ls /entrypoint-scripts/*.sh | sort -n`; do bash "$script"