forked from OpenSourceWebstar/EasyDocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·37 lines (32 loc) · 807 Bytes
/
start.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
#!/bin/bash
initial_command1="$1"
initial_command2="$2"
initial_command3="$3"
initial_command4="$4"
initial_command5="$5"
# Used for saving directory path
initial_path="$6"
initial_path_save=$initial_path
displayEasyDockerLogo()
{
echo "
____ ____ ____ _ _ ___ ____ ____ _ _ ____ ____
|___ |__| [__ \_/ | \ | | | |_/ |___ |__/
|___ | | ___] | |__/ |__| |___ | \_ |___ | \ "
echo ""
}
initEasyDocker()
{
# For the full application loading
if [[ "$initial_command1" == "run" ]]; then
init_run_flag="true"
displayEasyDockerLogo;
source "scripts/source/load_sources.sh"
else
# For the CLI loading
init_run_flag="false"
displayEasyDockerLogo;
source "scripts/source/load_sources.sh"
fi
}
initEasyDocker;