-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpmautoinstall
554 lines (506 loc) · 32 KB
/
rpmautoinstall
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
##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
#### 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=$text
MAINIP=$(hostname --ip-address)
MYHOST=$(hostname)
while true; do
read -p "Your System Main Ip is : $MAINIP?" yn
case $yn in
[Yy]* ) echo "Main IP Detect"; break;;
[Nn]* ) echo -n "Enter Server Ipv4(Eg. 001.100.200.300) > ";read text;MAINIP=$text;break;;#exit;;
* ) echo "Please answer yes or no.";;
esac
done
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";
#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="";
echo -e "\e[32m########################################\n#### BIND DNS Software #########\n########################################"
while true; do
read -p "Do you wish to install (BIND DNS) program?" yn
case $yn in
[Yy]* ) BIND="true"; break;;
[Nn]* ) echo "Reject Program : BIND DNS (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
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 "\e[32m########################################\n#### Curl Software #########\n########################################"
while true; do
read -p "Do you wish to install (CURL) program?" yn
case $yn in
[Yy]* ) CURL="true"; break;;
[Nn]* ) echo "Reject Program : CURL (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
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 "\e[32m########################################\n#### MariaDB/MySQL Software #########\n########################################"
while true; do
read -p "Do you wish to install (MariaDB/MYSQL) DATABASE program?" yn
case $yn in
[Yy]* ) DB="true"; break;;
[Nn]* ) echo "Reject Program : MYSQL (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
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 "\e[32m########################################\n#### Apache2.4 Server Soft. #########\n########################################"
while true; do
read -p "Do you wish to install (Apache) program?" yn
case $yn in
[Yy]* ) Apache="true";break;;
[Nn]* ) echo "Reject Program : Apache (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
echo "Enter Below Details For openssl Certificate ";
echo -n "Enter YOUR Country Code [XX] In Two Character e.g IN for India > ";read btext;
echo -n "Enter Your State > ";read stext;
echo -n "Enter Your City > ";read ctext;
echo -n "Enter Your Organization > ";read otext;
echo -n "Enter Your Organization Unit > ";read outext;
echo -n "Enter Your Server Name > ";read srvtext;
echo -n "Enter Your Email ID > ";read etext;
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 "\e[32m########################################\n#### PHP 5 Package/Software #########\n########################################"
while true; do
read -p "Do you wish to install (php) program?" yn
case $yn in
[Yy]* ) PHPe="true"; break;;
[Nn]* ) echo "Reject Program : PHP 5 (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
while true; do
read -p "Do you wish to Run PHP5 Test program?" yn
case $yn in
[Yy]* ) PHPT="true"; break;;
[Nn]* ) date +"%r" >> $BUILD;echo "Status : Php Testing function Disable" >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
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 "\e[34m########################################\n#### Cron JOB Software #########\n########################################"
while true; do
read -p "Do you wish to install (Cron JOB) program?" yn
case $yn in
[Yy]* ) CRON="n";="true"; break;;
[Nn]* ) echo "Reject Program : Cron JOB (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
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 "\e[34m########################################\n####ConfigServer Security & Firewall####\n########################################"
while true; do
read -p "Do you wish to install (ConfigServer Security & Firewall (csf) ) program?" yn
case $yn in
[Yy]* ) CSSF="true"; break;;
[Nn]* ) echo "Reject Program : ConfigServer Security & Firewall (csf) (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
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 "\e[34m########################################\n#### Webmin Control Panel #############\n########################################"
while true; do
read -p "Do you wish to install (Control Panel) program?" yn
case $yn in
[Yy]* ) WCP="true"; break;;
[Nn]* ) echo "Reject Program : Control Panel (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
echo -n "Control Panel Username (Eg. root) > ";read btext;weba=$btext;
echo -n "Control Panel Password (Eg. pass1234) > ";read ctext;webp=$ctext;
echo -n "Control Panel Port (Eg. 2083) > ";read ctext;webo=$ctext;
if ! [ "$webo" -eq "$webo" ] 2> /dev/null
then
echo "Sorry integers only now your control panel PORT - default 2083"; webo=2083;
fi
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 "\e[34m########################################\n#### ProFTP FTP Solution #############\n########################################"
while true; do
read -p "Do you wish to install (FTP proftpd) program?" yn
case $yn in
[Yy]* ) PFTP="true"; break;;
[Nn]* ) echo "Reject Program : Pro FTPd (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
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 "\e[34m########################################\n#### PostFix Mail Solution ###########\n########################################"
while true; do
read -p "Do you wish to install (Mail Forward And Sendmail )Postfix program?" yn
case $yn in
[Yy]* ) PostFix="true"; break;;
[Nn]* ) echo "Reject Program : PostFix (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
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";
echo -e "\e[34m########################################\n#### FFMPEG Software ###########\n########################################"
while true; do
read -p "Do you wish to install (Video FrameWork )FFMPEG program?" yn
case $yn in
[Yy]* ) FF="true"; break;;
[Nn]* ) echo "Reject Program : FFMPEG (By You) " >> $BUILD; break;;
* ) echo "Please answer yes or no.";;
esac
done
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";
echo "Domain Added (MAIN):$MAINDOMAIN (Domain Directory:/home/www)"
while true; do
read -p "Do You Want Add More Domains?" yn
case $yn in
[Yy]* ) echo ".";
echo -n "Enter Your Additional Domain seprate by comma(Eg. domain.com,domain.in,three.in) > "
read dstring
EXTRAD=$dstring;
break;;
[Nn]* ) echo -e "You Select Cancel For More Domain Option";EXTRAD="no";break;;#exit;;
* ) echo "Please answer yes or no.";;
esac
done
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";
while true; do
read -p "Do You Want Domain SSL https connection?" yn
case $yn in
[Yy]* ) echo ".";
echo -n "Enable https connection Domain seprate by comma(,)(Eg. domain.com,domain.in,three.in) > "
read dstring
EXTRADS=$dstring;
break;;
[Nn]* ) echo -e "You Select Cancel SSL https";EXTRADS="no";break;;#exit;;
* ) echo "Please answer yes or no.";;
esac
done
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=$btext
CAS=$stext
CAL=Aurangabad
CAO=$otext
CAU=$outext
CACM=$srvtext
CAM=$etext
BIND=$BIND
CURL=$CURL
DB=$DB
WCP=$WCP
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 &
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
######################################
$RESET";