Files
wazuh-docker-mirror/wazuh/config/entrypoint.sh
AlfonsoRBJ 3f206679da Add trap for sbin my init (#310)
Former-commit-id: 7e7f97c4cd
2020-03-04 12:24:18 +01:00

16 lines
516 B
Bash

#!/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"
done
##############################################################################
# Start Wazuh Server.
##############################################################################
/sbin/my_init