Add trap for sbin my init (#310)

Former-commit-id: 7e7f97c4cd
This commit is contained in:
AlfonsoRBJ
2020-03-04 12:24:18 +01:00
committed by GitHub
parent 2f0bb8e43c
commit 3f206679da

View File

@@ -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"