-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
94 lines (69 loc) · 1.99 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
#####################################################################################
# #
# * APMinstaller with Rocky8 Linux #
# * ROCKY Linux-8.x #
# * Apache 2.4.X , MariaDB 10.6.X, Multi-PHP(base php7.2) setup shell script #
# * Created Date : 2022/2/25 #
# * Created by : Joo Sung ( [email protected] ) #
# #
#####################################################################################
echo "
=======================================================
< ROCKY 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/ROCKY8/APM
chmod 700 APMinstaller.sh
chmod 700 /root/ROCKY8/adduser.sh
chmod 700 /root/ROCKY8/deluser.sh
chmod 700 /root/ROCKY8/restart.sh
sh APMinstaller.sh
cd /root/ROCKY8
echo ""
echo ""
echo "ROCKY 설치 완료!"
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/ROCKY8/APM
chmod 700 phpMyAdmin.sh
sh phpMyAdmin.sh
echo ""
echo ""
echo "phpMyAdmin 설치 완료!"
echo ""
echo ""
echo ""
#설치 파일 삭제
rm -rf /root/ROCKY8/APM
echo ""
rm -rf /root/ROCKY8/install.sh
echo ""
exit;
esac