-
Notifications
You must be signed in to change notification settings - Fork 0
/
webconf.sh
109 lines (109 loc) · 2.2 KB
/
webconf.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
clear &&
echo ""
clear
echo ""
echo ""
echo -e $'\e[1;91m[\e[0m\e[1;77m+\e[0m\e[1;91m]\e[1;32m' WE HAVE SUCCESSFULLY UPGRADED LINUX - WE WILL NOW CONFIGURE WEBSERVER'\033[0m'
echo -e $'\e[1;91m[\e[0m\e[1;77m+\e[0m\e[1;91m]\e[1;32m' MAKE SURE TO RUN SCRIPT AS ROOT!!!!'\033[0m'
sleep 1 &&
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo -e $'\e[1;91m[\e[0m\e[1;77m+\e[0m\e[1;91m]\e[1;32m' SCRIPT BY SYSTEMKEYY'\033[0m'
sleep 3
echo ""
echo ""
echo ""
echo ""
echo -e $'\e[1;91m[\e[0m\e[1;77m+\e[0m\e[1;91m]\e[1;32m'Loading script setup and giving proper permissions...'.';
echo -ne '> [5%]\r'
sleep 0.1
echo -ne '>> [10%]\r'
sleep 0.2
echo -ne '>>>> [20%]\r'
sleep 0.1
echo -ne '>>>>> [25%]\r'
sleep 0.1
echo -ne '>>>>>> [30%]\r'
sleep 0.1
echo -ne '>>>>>>> [35%]\r'
sleep 0.1
echo -ne '>>>>>>>> [40%]\r'
sleep 0.1
echo -ne '>>>>>>>>> [45%]\r'
sleep 0.1
echo -ne '>>>>>>>>>> [50%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>> [55%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>>> [60%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>>>> [65%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>>>>> [70%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>>>>>> [75%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>>>>>>> [80%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>>>>>>>> [85%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>>>>>>>>> [90%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>>>>>>>>>> [95%]\r'
sleep 0.1
echo -ne '>>>>>>>>>>>>>>>>>>>>> [100%]\r.'
sleep 2 &&
clear &&
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
read -p "Install software? Yes/No " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then
apt install nginx tor php php-fpm php-gd php-json php-mbstring mysql-server gcc make build-essential autoconf libsodium-dev -yy;
else
echo "We failed somewhere, please check logs"
fi