-
Notifications
You must be signed in to change notification settings - Fork 0
/
autorpm.sh
326 lines (306 loc) · 16.4 KB
/
autorpm.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
##for centos 7 (no required for centos minimal version)
## yum install iptables-services
systemctl start iptables
systemctl enable iptables
systemctl disable firewalld
systemctl stop firewalld
iptables -P INPUT ACCEPT
iptables -F
iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -m state --state RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT # if need
# add any other port you need, like above
iptables -P INPUT DROP
service iptables save
service iptables stop
chkconfig iptables off
chkconfig ip6tables off
#### END ###
RED='\033[01;31m'
RESET='\033[0m'
GREEN='\033[01;32m'
echo -e ' ..:ir7YsJYLii:.
:iL1XqEZggQgQgQgRMQRQRRDd2Yi.
.rIZBBBBBQBRgPSjLrr::.......::rv5dBQBBQ2i
.vPBBBQMEbSU7i: :vPBBBX:
:IRBQQdKUj7i:. rPBBq:
.URBQRE5v77:....... dZdbEPEPEbZdEbZM1 igBQL
:PBRZEDUrirLi...:.:.. SgPKPKPqPKPKPKPKPR7 .PBBs
.EQRPbdPi:ivv7.:::::.. YgKIS25ISKPIS25IIIPM: .PBQv
JBMPKPES.:7v7vi:::::.. rgqI5252SPuJd55UI2IIPg. 7BBZ:
ZBPPXqPq.:vv77rr:::::. :DPSSI52Sqg EPIIUIUIIdd :BgQ7
RBPPSKKD::77rrrrr:::::..dbISI525SRi :gK25UI2I2DS iBbMs
EBPPSXSbS:r7rrrriri:::..XZ55ISI55g2 LgS2IUI1I5gs . SQKR7
:BPqXKSKqqirrrrririi::..JgSXIS2S5bE. .. XdSU222UI5Rr . . . .RPSQ
PgPXqXKSKbY:rirrriiii:.7gXSISI5IKgi .... .Dq52IUI25SR: . . . . . EqXP7
iEEKqSqXKXPPr:iiiii:i:.igKS5SISISEs ..... :gS52212U5qg. . . . . . . . qq2SY
vZPPSKSXXXSPPv::iiii:.:EPXISI5ISq2 iP2IUIUIU5Pd ... ..... . . .E2IIj
iZdKKXqSX5X1qd5i::i::.PbKIS5SIKSPvirv77r7r7iiS5UIUIU225bX ............. YX1jXs
bgPXKXX1dBR5SdZ27:..SDqSS5XXKJ1KPdDZgZDZDZZPS25UIUIU2USZu ........... iXjL5Pr
iBPqXK2UBBgBSXKZDPY7U2IqXqX17srjPPqbqPqPqPPPKqIIUIUIU22XZY ......... iUY7uKQ
gQqKI2BBvgB17b1KqZP5jsvsJvvSKqrLIS5SIS5S5SII2P25UI12UIUSd2. ..... .:7vrrUKQr
QQXbBBXZBP:PIrrXKXSKXSUJ1P5XXPr ........ . 1d25UIUI1225PEJi.....:irrrYSKQL
DBPdQBBgiuuYr5qPSK5X5KSX5S5SSEY..:::::::::..5dIIU21I12UI5PddKXI5U21SSqPQ7
jBZX5LirLuvvb1j5XqKq5SIS5X5SSD1:.i:i:i:iii::ubS5UIUI12U225IXXXSK5X5qDg:
.EBMrLX12rYKJusuKUuXPD5dPbqS5E5::i:iiiiiii::7SKXI5UIUIU2U2UIUIU5SggJ
:dBQgPPI2J2Y21r7.1QPZr..rI55dXi:riiiririri:ivuX5X5SIIUIUI255Pggs
.2RQqPKqI5uu:v.Rgd: X7:ZI5KZP7irrrrrrrrrrrirrvLjuU122IIqdgq7
.PKKSqXPKY7EQ.i rgJBRBvrY5Ivir7777r7777v77r77vvYs5PdXL.
.IMgdZdEPEZDPP1Z: .EQQBivr77Psrv7vvLvYLsYssu1SXEdb2r.
.qBQDZDEggMgRMQQBQBDZEQRs7Jv7sEqUvssJJuuIIPPZEdSJi.
.:irrrrvus1vJJjjsLsvL77ii.. ';
echo -e '▒█░▒░▓█░█▒░▒▒█░█▓░▒░█▓ █████▒ ▓█ ▒█▓▓█▓ ██████ ▓████▒░█░ ░█████░▒████▓ ▓█████░
░▓ █▓▓█ ▓ ██▒█░▓░▓█░█▓ ▓▒ █▓ ▒█ ▒▓▓▓█▓ ▓░█▓▒█░▓▒ █▓ ▓ ░█░ ▓ ▒▓ ▓█ ▓▒▓█▒█▒
▒█▒█▓▓█░█▓▓█▒█▒█▓▓█▒█▓ █▓ █▓░▓░ ▓█ ██▒▒█▓░█▒█▓▒█░██ █▓░█▒ ░ ▒█▒ ░▓ ██ ██ █▓▓█░█▒
░█████▓ ██████ ▓█████░▓█ █████░░█████ █▓ █▓░█▒░░▒█ ▓████▒░█████▒█▓ █████ ▒████▓ █▓░▒░█▒ ';
echo -e "$GREEN
# Powered By DjAmol Group Inc #
# Email : [email protected] #
# Website : www.djamol.com #
# Copyright By PatilWeb.com #
# IG:PatilWeb FB:PatilWeb TW:PatilWeb #
$RESET";
echo -n "Enter Your Main Domain(Eg. domain.com) >"
read text
echo "Main Domain: $text"
MAINDOMAIN="demo.com"
MAINIP=$(hostname --ip-address)
MYHOST=$(hostname)
echo "Main IP: $MAINIP";
SCRIPT=$(readlink -f "$0")
# Absolute path this script is in, thus /home/user/bin
SCRIPTPATH=$(dirname "$SCRIPT")
#echo $SCRIPTPATH
BIND="n"; CURL="n"; DB="n"; Apache="n";PHPe="n";CRON="n";CSSF="n";WCP="n";PFTP="n";PostFix="n";FF="n";PHPT="n";AW="n";
#set timezone
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
mkdir $SCRIPTPATH/log
BUILDDIR=$SCRIPTPATH/log/
BUILDFILE=$RANDOM.txt
BUILD=$BUILDDIR$BUILDFILE
echo $BUILD
clear
echo -e '▒█░▒░▓█░█▒░▒▒█░█▓░▒░█▓ █████▒ ▓█ ▒█▓▓█▓ ██████ ▓████▒░█░ ░█████░▒████▓ ▓█████░
░▓ █▓▓█ ▓ ██▒█░▓░▓█░█▓ ▓▒ █▓ ▒█ ▒▓▓▓█▓ ▓░█▓▒█░▓▒ █▓ ▓ ░█░ ▓ ▒▓ ▓█ ▓▒▓█▒█▒
▒█▒█▓▓█░█▓▓█▒█▒█▓▓█▒█▓ █▓ █▓░▓░ ▓█ ██▒▒█▓░█▒█▓▒█░██ █▓░█▒ ░ ▒█▒ ░▓ ██ ██ █▓▓█░█▒
░█████▓ ██████ ▓█████░▓█ █████░░█████ █▓ █▓░█▒░░▒█ ▓████▒░█████▒█▓ █████ ▒████▓ █▓░▒░█▒ ';
echo -e "$GREEN
# Powered By DjAmol Group Inc #
# Email : [email protected] #
# Website : www.djamol.com #
# Copyright By PatilWeb.com #
# IG:PatilWeb FB:PatilWeb TW:PatilWeb #
$RESET";
BIND="true"
CURL="true";
DB="true";
Apache="true";
ctrxx="IN";
statx="Mah";
cityx="Pune";
otext="DA Group Inc";
outext="IT Sector";
srvtext="server.demo.com";
etext="[email protected]";
PHPe="true";
# testing php program
PHPT="no";
CRON="true";
CSSF="true";
WCP="true";
weba="admin";
webp="pass@123";
webo="2066";
if ! [ "$webo" -eq "$webo" ] 2> /dev/null
then
echo "Sorry integers only now your control panel PORT - default 2083"; webo=2083;
fi
PFTP="true";
PostFix="true";
FF="true";
AW="true";
EXTRAD="no";
EXTRADS="no";
set -a
# Global Variable to access any bash other files run by this file
#TESTVARIABLE=hellohelloheloo
WEBA=$weba
WEBP=$webp
WEBO=$webo
SCRIPTPATH=$SCRIPTPATH
BUILD=$BUILD
CAC=$ctrxx
CAS=$statx
CAL=$cityx
CAO=$otext
CAU=$outext
CACM=$srvtext
CAM=$etext
BIND=$BIND
CURL=$CURL
DB=$DB
WCP=$WCP
AW=$AW
Apache=$Apache
PHPe=$PHPe
PHPT=$PHPT;
CRON=$CRON
CSSF=$CSSF
PFTP=$PFTP
PostFix=$PostFix
MAINDOMAIN=$MAINDOMAIN
MAINIP=$MAINIP
MYHOST=$MYHOST
EXTRAD=$EXTRAD
EXTRADS=$EXTRADS
FF=$FF
# ...
# Here put all the variables that will be marked for export
# and that will be available from within test2 (and all other commands).
# If test2 modifies the variables, the modifications will never be
# seen in the present script!
set +a
# Here, even if test2 modifies TESTVARIABLE, you'll still have
# TESTVARIABLE=hellohelloheloo
#./start.sh > FFMPEG-output.log 2>&1 &
chmod +x auto*;
chmod +x inc/*.sh
./auto > ServerInstaller-output.log 2>&1 &
RED='\033[01;31m'
RESET='\033[0m'
GREEN='\033[01;32m'
echo -e ' ..:ir7YsJYLii:.
:iL1XqEZggQgQgQgRMQRQRRDd2Yi.
.rIZBBBBBQBRgPSjLrr::.......::rv5dBQBBQ2i
.vPBBBQMEbSU7i: :vPBBBX:
:IRBQQdKUj7i:. rPBBq:
.URBQRE5v77:....... dZdbEPEPEbZdEbZM1 igBQL
:PBRZEDUrirLi...:.:.. SgPKPKPqPKPKPKPKPR7 .PBBs
.EQRPbdPi:ivv7.:::::.. YgKIS25ISKPIS25IIIPM: .PBQv
JBMPKPES.:7v7vi:::::.. rgqI5252SPuJd55UI2IIPg. 7BBZ:
ZBPPXqPq.:vv77rr:::::. :DPSSI52Sqg EPIIUIUIIdd :BgQ7
RBPPSKKD::77rrrrr:::::..dbISI525SRi :gK25UI2I2DS iBbMs
EBPPSXSbS:r7rrrriri:::..XZ55ISI55g2 LgS2IUI1I5gs . SQKR7
:BPqXKSKqqirrrrririi::..JgSXIS2S5bE. .. XdSU222UI5Rr . . . .RPSQ
PgPXqXKSKbY:rirrriiii:.7gXSISI5IKgi .... .Dq52IUI25SR: . . . . . EqXP7
iEEKqSqXKXPPr:iiiii:i:.igKS5SISISEs ..... :gS52212U5qg. . . . . . . . qq2SY
vZPPSKSXXXSPPv::iiii:.:EPXISI5ISq2 iP2IUIUIU5Pd ... ..... . . .E2IIj
iZdKKXqSX5X1qd5i::i::.PbKIS5SIKSPvirv77r7r7iiS5UIUIU225bX ............. YX1jXs
bgPXKXX1dBR5SdZ27:..SDqSS5XXKJ1KPdDZgZDZDZZPS25UIUIU2USZu ........... iXjL5Pr
iBPqXK2UBBgBSXKZDPY7U2IqXqX17srjPPqbqPqPqPPPKqIIUIUIU22XZY ......... iUY7uKQ
gQqKI2BBvgB17b1KqZP5jsvsJvvSKqrLIS5SIS5S5SII2P25UI12UIUSd2. ..... .:7vrrUKQr
QQXbBBXZBP:PIrrXKXSKXSUJ1P5XXPr ........ . 1d25UIUI1225PEJi.....:irrrYSKQL
DBPdQBBgiuuYr5qPSK5X5KSX5S5SSEY..:::::::::..5dIIU21I12UI5PddKXI5U21SSqPQ7
jBZX5LirLuvvb1j5XqKq5SIS5X5SSD1:.i:i:i:iii::ubS5UIUI12U225IXXXSK5X5qDg:
.EBMrLX12rYKJusuKUuXPD5dPbqS5E5::i:iiiiiii::7SKXI5UIUIU2U2UIUIU5SggJ
:dBQgPPI2J2Y21r7.1QPZr..rI55dXi:riiiririri:ivuX5X5SIIUIUI255Pggs
.2RQqPKqI5uu:v.Rgd: X7:ZI5KZP7irrrrrrrrrrrirrvLjuU122IIqdgq7
.PKKSqXPKY7EQ.i rgJBRBvrY5Ivir7777r7777v77r77vvYs5PdXL.
.IMgdZdEPEZDPP1Z: .EQQBivr77Psrv7vvLvYLsYssu1SXEdb2r.
.qBQDZDEggMgRMQQBQBDZEQRs7Jv7sEqUvssJJuuIIPPZEdSJi.
.:irrrrvus1vJJjjsLsvL77ii.. ';
echo -e '▒█░▒░▓█░█▒░▒▒█░█▓░▒░█▓ █████▒ ▓█ ▒█▓▓█▓ ██████ ▓████▒░█░ ░█████░▒████▓ ▓█████░
░▓ █▓▓█ ▓ ██▒█░▓░▓█░█▓ ▓▒ █▓ ▒█ ▒▓▓▓█▓ ▓░█▓▒█░▓▒ █▓ ▓ ░█░ ▓ ▒▓ ▓█ ▓▒▓█▒█▒
▒█▒█▓▓█░█▓▓█▒█▒█▓▓█▒█▓ █▓ █▓░▓░ ▓█ ██▒▒█▓░█▒█▓▒█░██ █▓░█▒ ░ ▒█▒ ░▓ ██ ██ █▓▓█░█▒
░█████▓ ██████ ▓█████░▓█ █████░░█████ █▓ █▓░█▒░░▒█ ▓████▒░█████▒█▓ █████ ▒████▓ █▓░▒░█▒ ';
echo -e "$GREEN
# Powered By DjAmol Group Inc #
# Email : [email protected] #
# Website : www.djamol.com #
# Copyright By PatilWeb.com #
# IG:PatilWeb FB:PatilWeb TW:PatilWeb #
$RESET";
echo -e "$GREEN
Now Relax Installation is Started in Background
#######################
Now Relax Installation is Started in Background
PHP Apache,PHP,MariaDB,Curl,OpenSSLL And Other Customization Auto Installation Maximum Time ->> Time 20-30 minutes
FFMPEG Customization Auto Installation Maximum Time ->> Time 19-25 minutes
Check Installation is Completed By Command
ffmpeg -v
amol
######################################
$RESET";
clear
RED='\033[01;31m'
RESET='\033[0m'
GREEN='\033[01;32m'
echo -e ' ..:ir7YsJYLii:.
:iL1XqEZggQgQgQgRMQRQRRDd2Yi.
.rIZBBBBBQBRgPSjLrr::.......::rv5dBQBBQ2i
.vPBBBQMEbSU7i: :vPBBBX:
:IRBQQdKUj7i:. rPBBq:
.URBQRE5v77:....... dZdbEPEPEbZdEbZM1 igBQL
:PBRZEDUrirLi...:.:.. SgPKPKPqPKPKPKPKPR7 .PBBs
.EQRPbdPi:ivv7.:::::.. YgKIS25ISKPIS25IIIPM: .PBQv
JBMPKPES.:7v7vi:::::.. rgqI5252SPuJd55UI2IIPg. 7BBZ:
ZBPPXqPq.:vv77rr:::::. :DPSSI52Sqg EPIIUIUIIdd :BgQ7
RBPPSKKD::77rrrrr:::::..dbISI525SRi :gK25UI2I2DS iBbMs
EBPPSXSbS:r7rrrriri:::..XZ55ISI55g2 LgS2IUI1I5gs . SQKR7
:BPqXKSKqqirrrrririi::..JgSXIS2S5bE. .. XdSU222UI5Rr . . . .RPSQ
PgPXqXKSKbY:rirrriiii:.7gXSISI5IKgi .... .Dq52IUI25SR: . . . . . EqXP7
iEEKqSqXKXPPr:iiiii:i:.igKS5SISISEs ..... :gS52212U5qg. . . . . . . . qq2SY
vZPPSKSXXXSPPv::iiii:.:EPXISI5ISq2 iP2IUIUIU5Pd ... ..... . . .E2IIj
iZdKKXqSX5X1qd5i::i::.PbKIS5SIKSPvirv77r7r7iiS5UIUIU225bX ............. YX1jXs
bgPXKXX1dBR5SdZ27:..SDqSS5XXKJ1KPdDZgZDZDZZPS25UIUIU2USZu ........... iXjL5Pr
iBPqXK2UBBgBSXKZDPY7U2IqXqX17srjPPqbqPqPqPPPKqIIUIUIU22XZY ......... iUY7uKQ
gQqKI2BBvgB17b1KqZP5jsvsJvvSKqrLIS5SIS5S5SII2P25UI12UIUSd2. ..... .:7vrrUKQr
QQXbBBXZBP:PIrrXKXSKXSUJ1P5XXPr ........ . 1d25UIUI1225PEJi.....:irrrYSKQL
DBPdQBBgiuuYr5qPSK5X5KSX5S5SSEY..:::::::::..5dIIU21I12UI5PddKXI5U21SSqPQ7
jBZX5LirLuvvb1j5XqKq5SIS5X5SSD1:.i:i:i:iii::ubS5UIUI12U225IXXXSK5X5qDg:
.EBMrLX12rYKJusuKUuXPD5dPbqS5E5::i:iiiiiii::7SKXI5UIUIU2U2UIUIU5SggJ
:dBQgPPI2J2Y21r7.1QPZr..rI55dXi:riiiririri:ivuX5X5SIIUIUI255Pggs
.2RQqPKqI5uu:v.Rgd: X7:ZI5KZP7irrrrrrrrrrrirrvLjuU122IIqdgq7
.PKKSqXPKY7EQ.i rgJBRBvrY5Ivir7777r7777v77r77vvYs5PdXL.
.IMgdZdEPEZDPP1Z: .EQQBivr77Psrv7vvLvYLsYssu1SXEdb2r.
.qBQDZDEggMgRMQQBQBDZEQRs7Jv7sEqUvssJJuuIIPPZEdSJi.
.:irrrrvus1vJJjjsLsvL77ii.. ';
echo -e '▒█░▒░▓█░█▒░▒▒█░█▓░▒░█▓ █████▒ ▓█ ▒█▓▓█▓ ██████ ▓████▒░█░ ░█████░▒████▓ ▓█████░
░▓ █▓▓█ ▓ ██▒█░▓░▓█░█▓ ▓▒ █▓ ▒█ ▒▓▓▓█▓ ▓░█▓▒█░▓▒ █▓ ▓ ░█░ ▓ ▒▓ ▓█ ▓▒▓█▒█▒
▒█▒█▓▓█░█▓▓█▒█▒█▓▓█▒█▓ █▓ █▓░▓░ ▓█ ██▒▒█▓░█▒█▓▒█░██ █▓░█▒ ░ ▒█▒ ░▓ ██ ██ █▓▓█░█▒
░█████▓ ██████ ▓█████░▓█ █████░░█████ █▓ █▓░█▒░░▒█ ▓████▒░█████▒█▓ █████ ▒████▓ █▓░▒░█▒ ';
echo -e "$GREEN
# Powered By DjAmol Group Inc #
# Email : [email protected] #
# Website : www.djamol.com #
# Copyright By PatilWeb.com #
# IG:PatilWeb FB:PatilWeb TW:PatilWeb #
$RESET";
echo -e "$GREEN
Now Relax Installation is Started in Background
But if you want check output then all output live store in
ServerInstaller-output.log File
Command To Check LOG
1)All-Command-OUPUT(Show on Console)
cat ApachePHPffmpeg-amol/ServerInstaller-output.log;
2)Status-OUPUT-Only(Show on Console)
cat ApachePHPffmpeg-amol/log/*.txt;
&(if) FFMPEG Installation Output
1) All-Output
cat ApachePHPffmpeg-amol/FFMPEG-output.log;
2) Status Output ONly
cat /root/djamolDEV/ffmpeg/log/*.txt;
#######################
After Complete Installation
You Can use below shell command
#######################
# adddomain <-for add domain in apache server with bind dns
# addftp OR addftpuser <- add ftp account to access ftp service
# backup <- backup home directory with server config files
# dbbackup <- database backup StructureWithDATA or Only Table Structure
# dbrestore <- restore database from sql file
# sinfo <- Your VPS benchmark information
######################################
Now Relax Installation is Started in Background
PHP Apache,PHP,MariaDB,Curl,OpenSSLL And Other Customization Auto Installation Maximum Time ->> Time 20-30 minutes
FFMPEG Customization Auto Installation Maximum Time ->> Time 19-25 minutes
Check Installation is Completed By Command
ffmpeg -v
amol
######################################
Live Track Status Run ssh Below command
tail -f $BUILD | sed '/^AmolInstaller: SUCCESS$/ q'
$RESET";