-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
52 lines (44 loc) · 848 Bytes
/
entrypoint.sh
File metadata and controls
52 lines (44 loc) · 848 Bytes
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
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
GOROOT=/usr/local/go
GOBIN=$GOROOT/bin
GOPATH=$HOME/go
export PATH=$PATH:$GOPATH:$GOBIN:$GOPATH/bin
export EDITOR=nano
if [ -z $1 ]
then
# cat /ca.sh
echo "To install:"
echo " docker run --rm diginex/dt install | sudo sh"
echo "Usage:"
echo " dt ng serve"
exit 0
fi
if [ $1 = 'install' ]
then
cat /install.sh
exit 0
fi
if [ $1 = 'initchart' ]
then
mkdir -p charts/$2
cp -r /charts/generic-angular-frontend/* charts/$2
exit 0
fi
if [ $1 = 'initchart-nginx-mod-security' ]
then
mkdir -p charts/$2
cp -r /charts/nginx-mod-security/* charts/$2
exit 0
fi
if [ $1 = 'initchart-general-mod-security-logstash' ]
then
mkdir -p charts/$2
cp -r /charts/general-mod-security-logstash/* charts/$2
exit 0
fi
if [ $1 = 'getScript' ]
then
cat /dt.sh
exit 0
fi
exec "$@"