-
Notifications
You must be signed in to change notification settings - Fork 2
/
smart
executable file
·59 lines (54 loc) · 887 Bytes
/
smart
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
53
54
55
56
57
#!/bin/bash
#全局变量
phpfpmContainerName='marmot-phpfpm'
mysqlContainerName='marmot-mysql'
#加载公共smart函数库
. ./smartfunc/smartfunc
#加载mysql函数库
. ./smartfunc/mysqlfunc
#加载环境函数库
. ./smartfunc/environmentfunc
#加载phpfunc,php相关函数库
. ./smartfunc/phpfunc
case $1 in
'initial')
createDatabase $mysqlContainerName
initialTestDatabase $mysqlContainerName
initialDatabase $mysqlContainerName
;;
'start')
environmentStart
;;
'stop')
environmentStop
;;
'upgrade')
environmentUpgrade
;;
'cbf')
cbf $phpfpmContainerName
;;
'composer')
composer $phpfpmContainerName
;;
'cs')
cs $phpfpmContainerName
;;
'cpd')
cpd $phpfpmContainerName
;;
'md')
md $phpfpmContainerName
;;
'unit')
unit $phpfpmContainerName
;;
'unitFile')
unitFile $phpfpmContainerName $2
;;
'unitCover')
unitCover $phpfpmContainerName
;;
*)
menu
esac