mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-03 13:33:15 +00:00
Add trap for sbin my init (#310)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user