-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
41 lines (35 loc) · 1.12 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
set +x
pid="0"
handle_signal() {
echo "Signal received!"
if [ "x${pid}" != "x0" ]; then
kill -SIGTERM "${pid}"
wait "${pid}"
fi
exit 0
}
trap 'handle_signal' SIGINT SIGTERM SIGHUP SIGUSR1 SIGUSR2
print_help() {
echo "Print help called!"
}
echo -e "\033[1;91m"
echo -e "\033[1;91m (((( (((("
echo -e "\033[1;91m ((((((((((. (((((((((("
echo -e "\033[1;91m (############(((############("
echo -e "\033[1;91m ((((###### *(( #####(((("
echo -e "\033[1;91m ((((((#( ((( ((((#(((((("
echo -e "\033[1;91m #####(( ### ####((((#####"
echo -e "\033[1;91m #(((((((((( #( (((((((#"
echo -e "\033[1;91m #######* ((( ########"
echo -e "\033[1;91m ####(((((((((((####"
echo -e "\033[1;91m #############"
echo -e "\033[1;91m #######"
echo -e "\033[1;91m #"
echo -e "\033[39m"
echo " Welcome to the VoronDesign Toolkit docker container (v${VORON_TOOLKIT_VERSION})!"
echo " If you encounter any issues, please report them to the VoronDesign team!"
echo ""
"$@" &
pid="${!}"
wait "${pid}"