forked from joosung/AAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
93 lines (69 loc) · 1.96 KB
/
install.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/env bash
#####################################################################################
# #
# * CentOS APMinstaller v.1.5 #
# * CentOS 7.X Minimal ISO #
# * Apache 2.4.X , MariaDB 10.4.X, Multi-PHP(base php7.2) setup shell script #
# * Created Date : 2019/11/30 #
# * Created by : Joo Sung ( [email protected] ) #
# #
#####################################################################################
echo "
=======================================================
< AAI 설치 하기>
=======================================================
"
echo "설치 하시겠습니까? 'Y' or 'N'"
read YN
YN=`echo $YN | tr "a-z" "A-Z"`
if [ "$YN" != "Y" ]
then
echo "설치 중단."
exit
fi
echo""
echo "설치를 시작 합니다."
cd /root/AAI/APM
chmod 700 APMinstaller.sh
chmod 700 /root/AAI/adduser.sh
chmod 700 /root/AAI/deluser.sh
chmod 700 /root/AAI/restart.sh
sh APMinstaller.sh
cd /root/AAI
echo ""
echo ""
echo "AAI 설치 완료!"
echo ""
echo ""
echo ""
echo "
=======================================================
< phpMyAdmin 설치 하기>
=======================================================
"
echo "phpMyAdmin 설치 하시겠습니까? 'Y' or 'N'"
read YN
YN=`echo $YN | tr "a-z" "A-Z"`
if [ "$YN" != "Y" ]
then
echo "설치 중단."
exit
fi
echo""
echo "phpMyAdmin 설치를 시작 합니다."
cd /root/AAI/APM
chmod 700 phpMyAdmin.sh
sh phpMyAdmin.sh
echo ""
echo ""
echo "phpMyAdmin 설치 완료!"
echo ""
echo ""
echo ""
#설치 파일 삭제
rm -rf /root/AAI/APM
echo ""
rm -rf /root/AAI/install.sh
echo ""
exit;
esac